coreos-base/oem-azure: drop cloud-config

Ignition (starting with 0.14.0) will apply this configuration
instead.
This commit is contained in:
Alex Crawford 2017-03-01 17:01:03 -08:00
parent c17edecdc0
commit ade721bd5b
4 changed files with 22 additions and 55 deletions

View File

@ -1,52 +0,0 @@
#cloud-config
coreos:
units:
- name: etcd.service
runtime: true
drop-ins:
- name: 10-oem.conf
content: |
[Service]
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
- name: etcd2.service
runtime: true
drop-ins:
- name: 10-oem.conf
content: |
[Service]
Environment=ETCD_ELECTION_TIMEOUT=1200
- name: waagent.service
command: start
runtime: true
content: |
[Unit]
Description=Microsoft Azure Agent
Wants=network-online.target sshd-keygen.service
After=network-online.target sshd-keygen.service
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/usr/share/oem/python/bin/python -u /usr/share/oem/bin/waagent -daemon
- name: oem-cloudinit.service
command: restart
runtime: yes
content: |
[Unit]
Description=Cloudinit from Azure metadata
[Service]
Type=oneshot
ExecStart=/usr/bin/coreos-cloudinit --oem=azure
oem:
id: azure
name: Microsoft Azure
version-id: @@OEM_VERSION_ID@@
home-url: https://azure.microsoft.com/
bug-report-url: https://issues.coreos.com

View File

@ -0,0 +1,5 @@
ID=azure
VERSION_ID=@@OEM_VERSION_ID@@
NAME="Microsoft Azure"
HOME_URL="https://azure.microsoft.com/"
BUG_REPORT_URL="https://issues.coreos.com"

View File

@ -0,0 +1,13 @@
[Unit]
Description=Microsoft Azure Agent
Wants=network-online.target sshd-keygen.service
After=network-online.target sshd-keygen.service
[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/usr/share/oem/python/bin/python -u /usr/share/oem/bin/waagent -daemon
[Install]
WantedBy=multi-user.target

View File

@ -18,12 +18,13 @@ S="${WORKDIR}"
RDEPEND="~app-emulation/wa-linux-agent-${PV}"
src_prepare() {
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
}
src_install() {
insinto "/usr/share/oem"
doins "${T}/cloud-config.yml"
doins "${FILESDIR}/grub.cfg"
doins "${T}/oem-release"
doins -r "${FILESDIR}/units"
}