Merge pull request #829 from crawford/digitalocean

coreos-base/oem-digitalocean: Add DigitalOcean OEM
This commit is contained in:
Alex Crawford 2014-09-02 13:52:25 -07:00
commit 8916bf4013
4 changed files with 50 additions and 1 deletions

View File

@ -9,7 +9,7 @@ CROS_WORKON_REPO="git://github.com"
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64" KEYWORDS="~amd64"
else else
CROS_WORKON_COMMIT="5e112147bb747f2837aadb74bdfc0b0c592c3515" # tag v0.9.4 CROS_WORKON_COMMIT="685a38c6c832ee08ac4026e0125b13050b260bc8" # tag v0.9.5
KEYWORDS="amd64" KEYWORDS="amd64"
fi fi

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
}