mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
Merge pull request #829 from crawford/digitalocean
coreos-base/oem-digitalocean: Add DigitalOcean OEM
This commit is contained in:
commit
8916bf4013
@ -9,7 +9,7 @@ CROS_WORKON_REPO="git://github.com"
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
CROS_WORKON_COMMIT="5e112147bb747f2837aadb74bdfc0b0c592c3515" # tag v0.9.4
|
||||
CROS_WORKON_COMMIT="685a38c6c832ee08ac4026e0125b13050b260bc8" # tag v0.9.5
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
|
29
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/files/cloud-config.yml
vendored
Normal file
29
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-digitalocean/files/cloud-config.yml
vendored
Normal 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
|
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user