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:
parent
fcfcd49950
commit
740d48c368
@ -11,11 +11,3 @@ else
|
|||||||
CONFIG_FILE="$CONFIG_DIR/config.json"
|
CONFIG_FILE="$CONFIG_DIR/config.json"
|
||||||
fi
|
fi
|
||||||
install -D -m 0755 -o root -g root "$CONFIG_FILE" /var/lib/heat-cfntools/cfn-init-data
|
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
|
|
||||||
|
10
elements/seed-stack-config/install.d/11-seed-stack-heat-metadata
Executable file
10
elements/seed-stack-config/install.d/11-seed-stack-heat-metadata
Executable 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
|
Loading…
Reference in New Issue
Block a user