minor clean up of env-setup.sh, and add missing jinja2 dep
This commit is contained in:
parent
9c27cdc26e
commit
8d7820ce19
@ -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
2
setup/env-vars
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export IRONIC_URL=http://localhost:6385/
|
||||||
|
export OS_AUTH_TOKEN=' '
|
Loading…
Reference in New Issue
Block a user