Merge pull request #1188 from crawford/oem

coreos-base/oem-*: clean up OEM cloud-configs
This commit is contained in:
Alex Crawford 2015-04-08 12:40:47 -07:00
commit 44252b4171
4 changed files with 85 additions and 74 deletions

View File

@ -2,6 +2,14 @@
coreos: coreos:
units: units:
- name: etcd.service
runtime: true
drop-ins:
- name: 10-oem.conf
content: |
[Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
- name: waagent.service - name: waagent.service
command: start command: start
runtime: true runtime: true
@ -34,10 +42,3 @@ coreos:
version-id: @@OEM_VERSION_ID@@ version-id: @@OEM_VERSION_ID@@
home-url: https://azure.microsoft.com/ home-url: https://azure.microsoft.com/
bug-report-url: https://github.com/coreos/bugs/issues bug-report-url: https://github.com/coreos/bugs/issues
write_files:
- path: /run/systemd/system/etcd.service.d/10-oem.conf
permissions: 0644
content: |
[Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200

View File

@ -2,6 +2,14 @@
coreos: coreos:
units: units:
- name: etcd.service
runtime: true
drop-ins:
- name: 10-oem.conf
content: |
[Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
- name: oem-cloudinit.service - name: oem-cloudinit.service
command: restart command: restart
runtime: yes runtime: yes
@ -12,16 +20,10 @@ coreos:
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/bin/coreos-cloudinit --oem=cloudsigma ExecStart=/usr/bin/coreos-cloudinit --oem=cloudsigma
oem: oem:
id: cloudsigma id: cloudsigma
name: CloudSigma name: CloudSigma
version-id: @@OEM_VERSION_ID@@ version-id: @@OEM_VERSION_ID@@
home-url: https://www.cloudsigma.com/ home-url: https://www.cloudsigma.com/
bug-report-url: https://github.com/coreos/bugs/issues bug-report-url: https://github.com/coreos/bugs/issues
write_files:
- path: /run/systemd/system/etcd.service.d/10-oem.conf
permissions: 0644
content: |
[Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200

View File

@ -1,30 +1,35 @@
#cloud-config #cloud-config
coreos: coreos:
units: units:
- name: user-configdrive.service - name: etcd.service
mask: yes runtime: true
- name: user-configvirtfs.service drop-ins:
mask: yes - name: 10-oem.conf
- name: oem-cloudinit.service content: |
command: restart [Service]
runtime: yes Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
content: |
[Unit]
Description=Cloudinit from EC2-style metadata
[Service] - name: user-configdrive.service
Type=oneshot mask: yes
ExecStart=/usr/bin/coreos-cloudinit --oem=ec2-compat
oem: - name: user-configvirtfs.service
id: @@OEM_ID@@ mask: yes
name: @@OEM_NAME@@
version-id: @@OEM_VERSION_ID@@ - name: oem-cloudinit.service
home-url: @@OEM_HOME_URL@@ command: restart
bug-report-url: https://github.com/coreos/bugs/issues runtime: yes
write_files:
- path: /run/systemd/system/etcd.service.d/10-oem.conf
permissions: 0644
content: | content: |
[Unit]
Description=Cloudinit from EC2-style metadata
[Service] [Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200 Type=oneshot
ExecStart=/usr/bin/coreos-cloudinit --oem=ec2-compat
oem:
id: @@OEM_ID@@
name: @@OEM_NAME@@
version-id: @@OEM_VERSION_ID@@
home-url: @@OEM_HOME_URL@@
bug-report-url: https://github.com/coreos/bugs/issues

View File

@ -1,42 +1,45 @@
#cloud-config #cloud-config
coreos: coreos:
units: units:
- name: nova-agent-auto.service - name: etcd.service
command: restart runtime: true
runtime: yes drop-ins:
content: | - name: 10-oem.conf
[Unit] content: |
After=dbus.service [Service]
[Service] Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
Environment=HOME=/root
ExecStartPre=/bin/mount -t proc none /usr/share/oem/nova-agent/proc
ExecStartPre=/bin/mount -t xenfs none /usr/share/oem/nova-agent/proc/xen
ExecStartPre=/bin/mount --bind /dev /usr/share/oem/nova-agent/dev
ExecStartPre=/bin/mount --bind /sys /usr/share/oem/nova-agent/sys
ExecStart=/usr/bin/chroot /usr/share/oem/nova-agent/ /usr/share/nova-agent/0.0.1.38/sbin/nova-agent -o - -n -l info /usr/share/nova-agent/nova-agent.py
ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/sys
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
- name: nova-agent-watcher.service
command: restart
runtime: yes
content: |
[Unit]
After=dbus.service
[Service] - name: nova-agent-auto.service
ExecStart=/usr/share/oem/bin/nova-agent-watcher -watch-dir=/usr/share/oem/nova-agent -scripts-dir=/usr/share/oem/bin/ command: restart
oem: runtime: yes
id: rackspace
name: Rackspace Cloud Servers
version-id: @@OEM_VERSION_ID@@
home-url: https://www.rackspace.com/cloud/servers/
bug-report-url: https://github.com/coreos/coreos-overlay
write_files:
- path: /run/systemd/system/etcd.service.d/10-oem.conf
permissions: 0644
content: | content: |
[Unit]
After=dbus.service
[Service] [Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200 Environment=HOME=/root
ExecStartPre=/bin/mount -t proc none /usr/share/oem/nova-agent/proc
ExecStartPre=/bin/mount -t xenfs none /usr/share/oem/nova-agent/proc/xen
ExecStartPre=/bin/mount --bind /dev /usr/share/oem/nova-agent/dev
ExecStartPre=/bin/mount --bind /sys /usr/share/oem/nova-agent/sys
ExecStart=/usr/bin/chroot /usr/share/oem/nova-agent/ /usr/share/nova-agent/0.0.1.38/sbin/nova-agent -o - -n -l info /usr/share/nova-agent/nova-agent.py
ExecStopPost=/bin/umount -f /usr/share/oem/nova-agent/sys
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
- name: nova-agent-watcher.service
command: restart
runtime: yes
content: |
[Unit]
After=dbus.service
[Service]
ExecStart=/usr/share/oem/bin/nova-agent-watcher -watch-dir=/usr/share/oem/nova-agent -scripts-dir=/usr/share/oem/bin/
oem:
id: rackspace
name: Rackspace Cloud Servers
version-id: @@OEM_VERSION_ID@@
home-url: https://www.rackspace.com/cloud/servers/
bug-report-url: https://github.com/coreos/bugs/issues