Ansible roles and playbooks to enable a standalone Ironic install
15e1c3f22e
These changes allow the various playbooks to be executed by Ansible 1.9.x and 2.0. This was necessary as 2.0 has a number of changes to the YAML processor, and certain ways of doing things have naturally had to change. - Removed pass-through variable when a role is explicitly defined with variables passed through to it as updated yaml parser fails to handle appropriately. - Defined a default dib_packages variable of an empty string. - Changed stray boolean compare to use an is defined check as the the parser in Ansible 2.0 does not equate undefined to false. - Explicitly defined the testing_user for the syntax check as the check fails without it. - Revised MySQL module syntax usage to be compatible between Ansible 1.9.x and 2.0 development branches. - Updated some conditionals making string compares with lookups which is apparently problematic in Ansible 2.0. Depends-On: I9d5fa719793896cce00a69dafba738755b45b068 Depends-On: I23e902c8637e142fba23d71467225d48ee265253 Change-Id: I4fec7f44dd9d591388f345b3f449cb44b8e50744 Closes-Bug: 1469862 |
||
---|---|---|
bifrost | ||
doc/source | ||
playbooks | ||
scripts | ||
tools | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.testr.conf | ||
babel.cfg | ||
CONTRIBUTING.rst | ||
env-vars | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
openstack-common.conf | ||
README.rst | ||
README.vagrant.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini | ||
troubleshooting.rst |
Vagrant support for developers
Bifrost vagrant file for developers can be found in the
tools/vagrant_dev_env
directory. Running
vagrant up
from within this folder will bring up an Ubuntu
Trusty box with Bifrost installed.
By default, the VM will have three interfaces:
- eth0 - connected to a NAT network
- eth1 - connected to Host-only network named: vboxnet1
- eth2 - bridged - adapter must be set in Vagrantfile
Walkthrough done on OS X
Setup vagrant by:
- Installing git
- Installing virtualbox
- Installing vagrant
- Installing ansible
Configure Vagrant with the correct box:
vagrant box add ubuntu/trusty64
Clone bifrost repo:
git clone https://github.com/openstack/bifrost.git
Change into the bifrost directory:
cd bifrost/tools/vagrant_dev_env
Edit the Vagrantfile:
- Change the
bifrost.vm.network
public_network
value to a valid network interface to allow Bare Metal connectivity - Change
public_key
to correct key name - Change
network_interface
to match your needs
Boot the VM with:
vagrant up