coreos-base/oem-azure: use cloud-init --oem flag

This commit is contained in:
Alex Crawford 2014-10-10 18:05:39 -07:00
parent 47fdbb3507
commit 5482bcac59
2 changed files with 11 additions and 4 deletions

View File

@ -2,10 +2,6 @@
coreos: coreos:
units: units:
- name: user-cloudinit@var-lib-waagent-CustomData.path
command: start
runtime: true
- name: waagent.service - name: waagent.service
command: start command: start
runtime: true runtime: true
@ -19,6 +15,17 @@ coreos:
Type=simple Type=simple
ExecStart=/usr/share/oem/python/bin/python /usr/share/oem/bin/waagent -daemon ExecStart=/usr/share/oem/python/bin/python /usr/share/oem/bin/waagent -daemon
- name: oem-cloudinit.service
command: restart
runtime: yes
content: |
[Unit]
Description=Cloudinit from Azure metadata
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-cloudinit --oem=azure
oem: oem:
id: azure id: azure
name: Microsoft Azure name: Microsoft Azure