mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-22 15:01:00 +02:00
coreos-base/oem-ec2-compat: drop cloud-config
Ignition (starting with 0.14.0) will apply this configuration instead.
This commit is contained in:
parent
525ede98d7
commit
1e1c682121
@ -1,43 +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: user-configdrive.service
|
||||
mask: yes
|
||||
|
||||
- name: user-configvirtfs.service
|
||||
mask: yes
|
||||
|
||||
- name: oem-cloudinit.service
|
||||
command: restart
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Cloudinit from EC2-style metadata
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/coreos-cloudinit --oem=ec2-compat
|
||||
|
||||
oem:
|
||||
id: @@OEM_ID@@
|
||||
name: @@OEM_NAME@@
|
||||
version-id: @@OEM_VERSION_ID@@
|
||||
home-url: @@OEM_HOME_URL@@
|
||||
bug-report-url: https://issues.coreos.com
|
5
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/files/oem-release
vendored
Normal file
5
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/files/oem-release
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
ID=@@OEM_ID@@
|
||||
VERSION_ID=@@OEM_VERSION_ID@@
|
||||
NAME="@@OEM_NAME@@"
|
||||
HOME_URL="@@OEM_HOME_URL@@"
|
||||
BUG_REPORT_URL="https://issues.coreos.com"
|
@ -37,12 +37,12 @@ src_prepare() {
|
||||
-e "s\\@@OEM_NAME@@\\${NAME}\\g" \
|
||||
-e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
|
||||
-e "s\\@@OEM_HOME_URL@@\\${HOME_URL}\\g" \
|
||||
"${FILESDIR}/cloud-config.yml" > "${T}/cloud-config.yml" || die
|
||||
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/oem"
|
||||
doins "${T}/cloud-config.yml"
|
||||
doins "${T}/oem-release"
|
||||
if use ec2 ; then
|
||||
newins "${FILESDIR}/grub-ec2.cfg" grub.cfg
|
||||
elif use openstack ; then
|
Loading…
x
Reference in New Issue
Block a user