coreos-base/oem-digitalocean: use ignition

This relies on Ignition to do the provisioning instead of
coreos-cloudinit.
This commit is contained in:
Alex Crawford 2016-08-31 11:07:50 -07:00
parent 1bdb76a5be
commit e5abdd41cd
3 changed files with 7 additions and 32 deletions

View File

@ -1,30 +0,0 @@
#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 --oem=digitalocean
oem:
id: digitalocean
name: DigitalOcean
version-id: @@OEM_VERSION_ID@@
home-url: https://www.digitalocean.com/
bug-report-url: https://github.com/coreos/bugs/issues

View File

@ -0,0 +1,5 @@
ID=digitalocean
VERSION_ID=@@OEM_VERSION_ID@@
NAME="DigitalOcean"
HOME_URL="https://www.digitalocean.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"

View File

@ -16,11 +16,11 @@ S="${WORKDIR}"
src_prepare() { src_prepare() {
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die "${FILESDIR}/oem-release" > "${T}/oem-release" || die
} }
src_install() { src_install() {
insinto "/usr/share/oem" insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
doins "${FILESDIR}/grub.cfg" doins "${FILESDIR}/grub.cfg"
doins "${T}/oem-release"
} }