Bootstrap os-collect-config during image build
Os-collect-config minimally needs to be told what command to run. The first time it runs it will detect the Heat and/or ec2 metadata change, and run os-refresh-config, which will write out its configuration again. After the command returns os-collect-config is expected to re-execute itself to grab this configuration. Change-Id: I3294e251a7a3373adb1e994eef7ada99aab8282a
This commit is contained in:
parent
89bd266ab4
commit
1db3616df5
|
@ -1 +1,2 @@
|
|||
source-repositories
|
||||
os-refresh-config
|
||||
|
|
|
@ -5,6 +5,12 @@ install-packages python-pip build-essential libxslt-dev libxml2-dev python-dev
|
|||
|
||||
pip install /opt/stack/os-collect-config
|
||||
|
||||
# Minimal static config for bootstrapping
|
||||
cat > /etc/os-collect-config.conf <<eof
|
||||
[DEFAULT]
|
||||
command=os-refresh-config
|
||||
eof
|
||||
|
||||
# Upstart
|
||||
if [ -d /etc/init ] ; then
|
||||
cat > /etc/init/os-collect-config.conf <<eof
|
||||
|
|
Loading…
Reference in New Issue