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
This commit is contained in:
Derek Higgins 2014-08-29 10:25:19 +01:00
parent fcfcd49950
commit 740d48c368
2 changed files with 10 additions and 8 deletions

View File

@ -11,11 +11,3 @@ else
CONFIG_FILE="$CONFIG_DIR/config.json"
fi
install -D -m 0755 -o root -g root "$CONFIG_FILE" /var/lib/heat-cfntools/cfn-init-data
# Run only the heat_local collector when first booting
cat > /etc/os-collect-config.conf <<EOF
[default]
command=os-refresh-config
collectors=heat_local
EOF

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -eux
# Run only the heat_local collector when first booting
cat > /etc/os-collect-config.conf <<EOF
[DEFAULT]
command=os-refresh-config
collectors=heat_local
EOF