loci/scripts/configure_packages.sh
okozachenko 82082bf82d Copy default configuration files to /etc/
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
2023-08-16 00:39:53 +03:00

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