Put some order on os-refresh-config systemd
cloud-init is populating the file /var/lib/cloud/data/cfn-init-data with metadata and needs to happen before os-refresh-config is run which in turn needs to happen before the cfn-hup cronjob. Change-Id: I07fc60c4a165a42eeae1a8e5a20609a6e17fd790
This commit is contained in:
parent
3e2be84331
commit
c0dcb8430f
|
@ -25,6 +25,8 @@ elif [ -d /lib/systemd/system ] ; then
|
|||
cat > /lib/systemd/system/os-refresh-config.service <<eof
|
||||
[Unit]
|
||||
Description=Refresh Config on state change
|
||||
After=cloud-final.service
|
||||
Before=crond.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/os-refresh-config
|
||||
|
|
Loading…
Reference in New Issue