Make the os-collect-config config file modification part of the undercloud-stack-config element

This commit is contained in:
James Slagle 2014-09-10 11:22:58 -04:00
parent 57adf9d26c
commit 1d6720ee8b
2 changed files with 10 additions and 10 deletions

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

View File

@ -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