coreos-base/oem-digitalocean: Add DigitalOcean OEM

This commit is contained in:
Alex Crawford 2014-08-08 15:15:05 -07:00
parent cfd586fede
commit 8f1bd1d6d5
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#cloud-config
coreos:
units:
- name: 99-public-interface.network
runtime: yes
content: |
[Match]
Path=*:03.0
[Network]
IPv4LL=true
- name: systemd-networkd.service
command: restart
- name: oem-cloudinit.service
command: restart
runtime: yes
content: |
[Unit]
Description=Cloudinit from DigitalOcean metadata
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-cloudinit --from-digitalocean-metadata=http://169.254.169.254/ --convert-netconf=digitalocean
oem:
id: digitalocean
name: DigitalOcean
home-url: https://www.digitalocean.com/
bug-report-url: https://github.com/coreos/bugs/issues

View File

@ -0,0 +1,20 @@
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=5
DESCRIPTION="OEM suite for DigitalOcean images"
HOMEPAGE=""
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
# no source directory
S="${WORKDIR}"
src_install() {
insinto "/usr/share/oem"
doins ${FILESDIR}/cloud-config.yml
}