
This will allow us to shorten the values.yaml in many cases. This is disabled by default. Set COPY_DEFAULT_CONFIG_FILES=yes to enable it. Change-Id: I244c29844d3ceb29b73e9a60b284d900bbeeb4ec
11 lines
269 B
Bash
Executable File
11 lines
269 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
: ${COPY_DEFAULT_CONFIG_FILES:="no"}
|
|
|
|
if [[ $COPY_DEFAULT_CONFIG_FILES == "yes" ]] && [[ ! ${PROJECT} =~ ^(infra|requirements)$ ]]; then
|
|
mkdir -p "/etc/${PROJECT}/"
|
|
cp -r "/var/lib/openstack/etc/${PROJECT}"/* "/etc/${PROJECT}/" || true
|
|
fi
|