feat(rackspace): support for config drive

This commit is contained in:
Alex Polvi 2014-03-14 07:40:14 +00:00
parent b977fa3559
commit d9c3531d78
4 changed files with 21 additions and 7 deletions

View File

@ -17,3 +17,23 @@ coreos:
ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/dev ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/dev
ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/proc/xen ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/proc/xen
ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/proc ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/proc
- name: nova-agent-watcher.service
content: |
[Unit]
After=dbus.service
[Service]
ExecStart=/usr/share/oem/usr/bin/nova-agent-watcher -watch-dir=/usr/share/oem/nova-agent -scripts-dir=/usr/share/oem/usr/bin/
- name: media-configdrive.mount
content: |
[Mount]
What=/dev/disk/by-label/config-2
Where=/media/configdrive
- name: cloudinit-configdrive.service
content: |
[Unit]
RequiresMountsFor=/media/configdrive
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-cloudinit --from-file=/media/configdrive/openstack/latest/user_data

View File

@ -1,4 +0,0 @@
#!/bin/bash
/usr/bin/systemd-run --unit=cloudinit-init /usr/bin/coreos-cloudinit --from-file=/usr/share/oem/init.yml
/usr/bin/systemd-run --unit=nova-agent-watcher /usr/share/oem/usr/bin/nova-agent-watcher -watch-dir=/usr/share/oem/nova-agent -scripts-dir=/usr/share/oem/usr/bin/

View File

@ -26,8 +26,6 @@ RDEPEND="
src_install() { src_install() {
rsync --exclude=".git" -aq ${S}/ ${D}/nova-agent/ rsync --exclude=".git" -aq ${S}/ ${D}/nova-agent/
exeinto "/"
doexe ${FILESDIR}/run
insinto "/" insinto "/"
doins ${FILESDIR}/init.yml doins ${FILESDIR}/cloud-config.yml
} }