30e803aa56
Copies all templates found in the root of any element into the default template location. These templates will be filled in from heat metadata by os-config-applier whenever it is run. Update keystone to install templates in this way as an example. Change-Id: I0be0a79a431e9ba5b80e84f130c48d5ce8b100ae Co-Authored-By: Tim Miller <tim.miller.0@gmail.com>
15 lines
310 B
Bash
Executable File
15 lines
310 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
install-packages git-core python-pip
|
|
pip install -U git+https://github.com/tripleo/os-config-applier.git
|
|
|
|
TEMPLATE_ROOT=$(os-config-applier --print-templates)
|
|
mkdir -p $TEMPLATE_ROOT
|
|
|
|
cat > /etc/init/os-config-applier.conf <<- eof
|
|
start on runlevel [2345]
|
|
task
|
|
exec os-config-applier
|
|
eof
|