2013-01-30 18:57:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
TEMPLATES=git://github.com/tripleo/openstack-config-templates.git
|
|
|
|
|
|
|
|
sudo apt-get install --yes git python-pip
|
|
|
|
pip install -U git+https://github.com/tripleo/os-config-applier.git
|
|
|
|
|
|
|
|
mkdir -p /opt/stack
|
|
|
|
git clone $TEMPLATES /opt/stack/openstack-config-templates
|
|
|
|
|
2013-02-07 03:05:47 +00:00
|
|
|
runscript=$(os-refresh-config --print-base)/configuration.d/10-os-config-applier
|
|
|
|
mkdir -p $(dirname $runscript)
|
|
|
|
cat > $runscript <<- eof
|
|
|
|
#!/bin/sh
|
2013-01-30 18:57:12 +00:00
|
|
|
exec os-config-applier -t /opt/stack/openstack-config-templates/templates
|
|
|
|
eof
|
2013-02-07 03:05:47 +00:00
|
|
|
chmod 0755 $runscript
|