minor clean up of env-setup.sh, and add missing jinja2 dep

This commit is contained in:
Devananda van der Veen 2015-02-26 12:56:13 -08:00
parent 9c27cdc26e
commit 8d7820ce19
2 changed files with 17 additions and 5 deletions

View File

@ -1,7 +1,14 @@
#!/bin/bash #!/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 cd /opt/stack
if [ ! -d ansible ]; then if [ ! -d ansible ]; then
git clone git://github.com/ansible/ansible.git --recursive git clone git://github.com/ansible/ansible.git --recursive
else else
@ -9,7 +16,10 @@ else
git pull --rebase git pull --rebase
git submodule update --init --recursive git submodule update --init --recursive
fi fi
echo
echo "Run the following commands to proceed: "
echo
echo "source env-vars"
echo "source /opt/stack/ansible/hacking/env-setup"
echo 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=' '