diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/files/cloud-config.yml b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/files/cloud-config.yml new file mode 100644 index 0000000000..26f020afa1 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/files/cloud-config.yml @@ -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 diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/oem-digitalocean-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/oem-digitalocean-0.0.1.ebuild new file mode 100644 index 0000000000..74f19cd044 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/oem-digitalocean-0.0.1.ebuild @@ -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 +}