mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 22:11:39 +02:00
coreos-base: add oem-cloudsigma
This commit is contained in:
parent
ba49e31844
commit
1fb454435d
27
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-cloudsigma/files/cloud-config.yml
vendored
Normal file
27
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-cloudsigma/files/cloud-config.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
#cloud-config
|
||||
|
||||
coreos:
|
||||
units:
|
||||
- name: oem-cloudinit.service
|
||||
command: restart
|
||||
runtime: yes
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Cloudinit from CloudSigma metadata
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/coreos-cloudinit --oem=cloudsigma
|
||||
oem:
|
||||
id: cloudsigma
|
||||
name: CloudSigma
|
||||
version-id: @@OEM_VERSION_ID@@
|
||||
home-url: https://www.cloudsigma.com/
|
||||
bug-report-url: https://github.com/coreos/bugs/issues
|
||||
|
||||
write_files:
|
||||
- path: /run/systemd/system/etcd.service.d/10-oem.conf
|
||||
permissions: 0644
|
||||
content: |
|
||||
[Service]
|
||||
Environment=ETCD_PEER_ELECTION_TIMEOUT=1200
|
@ -0,0 +1,25 @@
|
||||
# Copyright (c) 2015 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="OEM suite for CloudSigma images"
|
||||
HOMEPAGE=""
|
||||
SRC_URI=""
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
# no source directory
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
|
||||
${FILESDIR}/cloud-config.yml > ${T}/cloud-config.yml || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/oem"
|
||||
doins ${T}/cloud-config.yml
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user