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>
9 lines
375 B
Bash
9 lines
375 B
Bash
#!/bin/bash
|
|
# Note that this relies on the detail that all elements share one dir
|
|
# inside the chroot. This will copy all the files that elements have
|
|
# added to element/os-config-applier into the appropriate location.
|
|
set -eux
|
|
TEMPLATE_ROOT=$(os-config-applier --print-templates)
|
|
TEMPLATE_SOURCE=$(dirname $0)/../os-config-applier
|
|
rsync -r $TEMPLATE_SOURCE/ $TEMPLATE_ROOT/
|