# OpenStack on Ansible with Vagrant (unofficial)
## Note: this isn't the official OpenStack-Ansible project
You almost certainly want [openstack/openstack-ansible][1] instead, which
is the official OpenStack-Ansible project.
[1]: https://github.com/openstack/openstack-ansible
## Overview
This repository contains script that will deploy OpenStack into Vagrant virtual
machines. These scripts are based on the [Official OpenStack
Docmentation](http://docs.openstack.org/), havana release, except where
otherwise noted.
See also [Vagrant, Ansible and OpenStack on your laptop]
(http://www.slideshare.net/lorinh/vagrant-ansible-and-openstack-on-your-laptop)
on SlideShare, though this refers to a much older version of this repo and so is
now out of date.
## Install prereqs
You'll need to install:
* [Vagrant](http://vagrantup.com)
* [Ansible](http://ansible.github.com)
* [python-netaddr](https://pypi.python.org/pypi/netaddr/)
* [python-novaclient](https://pypi.python.org/pypi/python-novaclient) (recommended)
To install Ansible and the other required Python modules:
pip install ansible netaddr python-novaclient
## (Optional) Speed up your provisioning
Install [Vagrant-cachier](http://fgrehm.viewdocs.io/vagrant-cachier) plugin:
vagrant plugin install vagrant-cachier
It allow to share a local directory containing packages (Apt, Npm, …) cache
among VMs.
## Get an Ubuntu 12.04 (precise) Vagrant box
Download a 64-bit Ubuntu Vagrant box:
vagrant box add precise64 http://files.vagrantup.com/precise64.box
## Grab this repository
This repository uses a submodule that contains some custom Ansible modules for
OpenStack, so there's an extra command required after cloning the repo:
git clone http://github.com/openstack-ansible/openstack-ansible.git
cd openstack-ansible
git submodule update --init
## Bring up the cloud
make
This will boot three VMs (controller, network, storage, and a compute node),
install OpenStack, and attempt to boot a test VM inside of OpenStack.
If everything works, you should be able to ssh to the instance from any
of your vagrant hosts:
* username: `cirros`
* password: `cubswin:)`
Note: You may get a "connection refused" when attempting to ssh to the instance.
It can take several minutes for the ssh server to respond to requests, even
though the cirros instance has booted and is pingable.
## Vagrant hosts
The hosts for the standard configuration are:
* 10.1.0.2 (our cloud controller)
* 10.1.0.3 (compute node #1)
* 10.1.0.4 (the quantum network host)
* 10.1.0.5 (the swift storage host)
You should be able to ssh to these VMs (username: `vagrant`, password:
`vagrant`). You can also authenticate with the vagrant private key, which is
included here as the file `vagrant_private_key` (NOTE: git does not manage file
permissions, these must be set to using "chmod 0600 vagrant_private_key" or ssh
and ansible will fail with an error).
## Interacting with your cloud
You can interact with your cloud directly from your desktop, assuming that you
have the [python-novaclient](http://pypi.python.org/pypi/python-novaclient/)
installed.
Note that the openrc file will be created on the controller by default.
没有合适的资源?快使用搜索试试~ 我知道了~
openstack-ansible, installing剧本用于安装 OpenStack.zip
共162个文件
yaml:60个
conf:18个
testcases:11个
需积分: 22 10 下载量 139 浏览量
2019-09-18
14:50:35
上传
评论
收藏 144KB ZIP 举报
温馨提示
openstack-ansible, installing剧本用于安装 OpenStack OpenStack与 Vagrant ( 非官方)的Ansible注意:这不是官方的openstack ansible项目You almost project project project project project proje
资源推荐
资源详情
资源评论
收起资源包目录
openstack-ansible, installing剧本用于安装 OpenStack.zip (162个子文件)
all 6KB
ansible_hosts 1KB
ansible_hosts 1KB
AUTHORS 90B
ansible.cfg 250B
cinder 28B
my.cnf 4KB
.my.cnf 54B
cinder.conf 46KB
ceilometer.conf 20KB
heat.conf 18KB
glance-api.conf 16KB
keystone.conf 15KB
neutron.conf 13KB
chrony.conf 3KB
glance-registry.conf 3KB
nova.conf 3KB
mongodb.conf 2KB
memcached.conf 1KB
proxy-server.conf 1KB
rsyncd.conf 563B
container-server.conf 327B
account-server.conf 314B
object-server.conf 309B
rabbitmq-env.conf 297B
swift.conf 223B
configure_br-ex 383B
filter_plugins 20B
filter_plugins 20B
filter_plugins 20B
filter_plugins 20B
filter_plugins 20B
filter_plugins 20B
.gitignore 49B
.gitmodules 134B
group_vars 16B
group_vars 16B
group_vars 16B
group_vars 16B
group_vars 16B
group_vars 16B
group_vars 16B
group_vars 16B
group_vars 16B
ovs_neutron_plugin.ini 6KB
api-paste.ini 4KB
api-paste.ini 3KB
dhcp_agent.ini 3KB
glance-api-paste.ini 3KB
l3_agent.ini 2KB
api-paste.ini 2KB
metadata_agent.ini 1KB
glance-registry-paste.ini 1004B
api-paste.ini 900B
iptablesload 56B
library 31B
library 31B
library 31B
library 31B
library 31B
library 31B
library 31B
library 31B
library 25B
LICENSE 34KB
Makefile 674B
README.md 3KB
TODO.md 1KB
nova 44B
admin.openrc 183B
demo.openrc 180B
token.openrc 104B
local_settings.py 15KB
search_hostvars.py 2KB
iptables.rules 237B
swift 287B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
templates 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
testcases 15B
vagrant_private_key 2KB
Vagrantfile 3KB
共 162 条
- 1
- 2
资源评论
weixin_38744153
- 粉丝: 347
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功