This commit is contained in:
Julia Kreger 2015-02-26 16:50:53 -05:00
commit 1cd41e4cd9
3 changed files with 21 additions and 6 deletions

View File

@ -1,7 +1,14 @@
#!/bin/bash
sudo apt-get -y install git
mkdir /opt/stack
sudo apt-get -y install git python-pip
sudo pip install jinja2
u=$(whoami)
g=$(groups | awk '{print $1}')
mkdir -p /opt/stack || (sudo mkdir -p /opt/stack && chown $u:$g /opt/stack)
cd /opt/stack
if [ ! -d ansible ]; then
git clone git://github.com/ansible/ansible.git --recursive
else
@ -9,7 +16,10 @@ else
git pull --rebase
git submodule update --init --recursive
fi
echo
echo "Run the following commands to proceed: "
echo
echo "source env-vars"
echo "source /opt/stack/ansible/hacking/env-setup"
echo
echo "source /opt/stack/ansible/hacking/env-setup to proceed"
export IRONIC_URL=http://localhost:6385/
export OS_AUTH_TOKEN=' '

2
setup/env-vars Normal file
View File

@ -0,0 +1,2 @@
export IRONIC_URL=http://localhost:6385/
export OS_AUTH_TOKEN=' '

View File

@ -10,7 +10,7 @@
vars:
- network_interface: "virbr0"
- ironic_db_password: aSecretPassword473z
- mysql_password: password
- mysql_password:
- testing: true
- http_boot_folder: /httpboot
tasks:
@ -26,6 +26,9 @@
- python-pip
- python-mysqldb
- python-configparser
- libxslt-dev
- libssl-dev
- libxml2-dev
- ipxe
- tftp-hpa
- syslinux