coreos-base: add oem-cloudsigma

This commit is contained in:
Alex Crawford 2015-02-11 17:05:59 -08:00
parent ba49e31844
commit 1fb454435d
2 changed files with 52 additions and 0 deletions

View 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

View File

@ -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
}