This repository contains script that will deploy OpenStack into Vagrant virtual machines. These scripts are based on the OpenStack Install and Deploy Manual, Essex release.
See also Vagrant, Ansible and OpenStack on your laptop on SlideShare.
You'll need to install:
- Vagrant
- Ansible
- python-novaclient so you can control your instances with the
nova
command-line tool.
The simplest way to get started with Ansible is to install the prequisities, grab the git repo and source the appropriate file to set your environment variables, no other installation is required:
sudo pip install paramiko PyYAML Jinja2
git clone git://github.com/ansible/ansible.git
cd ./ansible
source ./hacking/env-setup
Download a 64-bit Ubuntu Vagrant box:
vagrant box add precise64 http://files.vagrantup.com/precise64.box
cd ~
git clone http://github.com/lorin/openstack-ansible
cd ~/openstack-ansible
make all
This will boot two VMs, install OpenStack, and attempt to boot a test VM inside of OpenStack.
If everything works, you should be able to ssh to the instance:
- 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.
The hosts are:
- 192.168.206.130 (our cloud controller)
- 192.168.206.131 (compute host #1)
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
.