mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-06 09:52:14 +01:00
coreos-base/oem-digitalocean: Add DigitalOcean OEM
This commit is contained in:
parent
cfd586fede
commit
8f1bd1d6d5
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