Make the os-collect-config config file modification part of the undercloud-stack-config element
This commit is contained in:
parent
57adf9d26c
commit
1d6720ee8b
10
elements/undercloud-stack-config/install.d/11-undercloud-os-collect-config
Executable file
10
elements/undercloud-stack-config/install.d/11-undercloud-os-collect-config
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
|
@ -196,16 +196,6 @@ EOF
|
||||
|
||||
fi
|
||||
|
||||
# Fix up os-collect-config config file
|
||||
# https://review.openstack.org/#/c/117757/
|
||||
# Run only the heat_local collector when first booting
|
||||
sudo /bin/bash -c "cat > /etc/os-collect-config.conf <<EOF
|
||||
[DEFAULT]
|
||||
command=os-refresh-config
|
||||
collectors=heat_local
|
||||
EOF
|
||||
"
|
||||
|
||||
# Reset ownership of cache directory
|
||||
# This is needed in order for instack-build-images to make changes to the cache
|
||||
# $USER is not always set in a live cd building enviroment, so use || true
|
||||
|
Loading…
Reference in New Issue
Block a user