tripleo-image-elements/elements/seed-stack-config/install.d/01-seed-stack-heat-metadata
Derek Higgins 740d48c368 Fix up os-collect-config.conf on the seed
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
2014-08-29 12:45:14 +01:00

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