mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 11:32:02 +02:00
feat(rackspace): support for config drive
This commit is contained in:
parent
b977fa3559
commit
d9c3531d78
@ -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
|
@ -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/
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user