From 1b8b8e8b65ef9935d415970767d376ccf4f6ca47 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Mon, 22 Sep 2014 11:37:35 -0700 Subject: [PATCH] Add minimal OEM packages for Azure and Hyper-V We can now can generate images for Azure/Hyper-V, add basic cloud config to generate /etc/oem-release to identify these images. The Azure images still lack support for the agent required in that environment. --- .../oem-azure/files/cloud-config.yml | 8 +++++++ .../oem-azure/oem-azure-0.0.1.ebuild | 23 +++++++++++++++++++ .../oem-hyperv/files/cloud-config.yml | 7 ++++++ .../oem-hyperv/oem-azure-0.0.1.ebuild | 21 +++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/cloud-config.yml create mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/oem-azure-0.0.1.ebuild create mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/files/cloud-config.yml create mode 100644 sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/oem-azure-0.0.1.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/cloud-config.yml b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/cloud-config.yml new file mode 100644 index 0000000000..214717a691 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/files/cloud-config.yml @@ -0,0 +1,8 @@ +#cloud-config + +coreos: + oem: + id: azure + name: Microsoft Azure + home-url: https://azure.microsoft.com/ + bug-report-url: https://github.com/coreos/bugs/issues diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/oem-azure-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/oem-azure-0.0.1.ebuild new file mode 100644 index 0000000000..2fe83fcced --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure/oem-azure-0.0.1.ebuild @@ -0,0 +1,23 @@ +# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="OEM suite for Azure" +HOMEPAGE="" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +# no source directory +S="${WORKDIR}" + +RDEPEND="dev-lang/python-oem" + +src_install() { + insinto "/usr/share/oem" + doins ${FILESDIR}/cloud-config.yml +} diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/files/cloud-config.yml b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/files/cloud-config.yml new file mode 100644 index 0000000000..3b1bbb3c6a --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/files/cloud-config.yml @@ -0,0 +1,7 @@ +#cloud-config + +coreos: + oem: + id: hyperv + name: Microsoft Hyper-V + bug-report-url: https://github.com/coreos/bugs/issues diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/oem-azure-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/oem-azure-0.0.1.ebuild new file mode 100644 index 0000000000..2c60adcb3f --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-hyperv/oem-azure-0.0.1.ebuild @@ -0,0 +1,21 @@ +# Copyright (c) 2013 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="OEM suite for Hyper-V" +HOMEPAGE="" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +# no source directory +S="${WORKDIR}" + +src_install() { + insinto "/usr/share/oem" + doins ${FILESDIR}/cloud-config.yml +}