740d48c368
Move the creation of os-collect-config.conf on the seed to 11-seed-stack-heat-metadata so it happens after 10-os-collect-config (and doesn't get overwriten). Also change case of the default section to DEFAULT, oslo.config requires it to be uppercase. Change-Id: I6b75d448384e1647f8414765c8122460e6c28e60
14 lines
370 B
Bash
Executable File
14 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
mkdir -p /var/lib/cloud/data
|
|
|
|
CONFIG_DIR="$(dirname $0)/../"
|
|
if [ -e "$CONFIG_DIR/local.json" ]; then
|
|
CONFIG_FILE="$CONFIG_DIR/local.json"
|
|
else
|
|
echo "Deprecated: Using config.json rather than local.json" >&2
|
|
CONFIG_FILE="$CONFIG_DIR/config.json"
|
|
fi
|
|
install -D -m 0755 -o root -g root "$CONFIG_FILE" /var/lib/heat-cfntools/cfn-init-data
|