diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-10 02:31:47 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-11 00:46:47 -0400 |
| commit | f17693e030d88d0d2a85d92d506506c34a0fb111 (patch) | |
| tree | 18ff0fc3e001e764809bf19122ff6456e869e0fe /meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb | |
| parent | 4264b4b64cf6ec230d350a0ca950b72554724994 (diff) | |
| download | meta-cloud-services-f17693e030d88d0d2a85d92d506506c34a0fb111.tar.gz | |
cloud-init: create skeleton package
This creates a basic/skeleton cloud-init package that has the following
properties:
- working sysvinit scripts
- Wind River distro definition
- baseline cloud.cfg with no data source and "hands off" configuration
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb')
| -rw-r--r-- | meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb b/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb new file mode 100644 index 0000000..f639d4b --- /dev/null +++ b/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.4.bb | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | DESCRIPTION = "Init scripts for use on cloud images" | ||
| 2 | HOMEPAGE = "https://launchpad.net/cloud-init" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "GPLv3" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504" | ||
| 6 | |||
| 7 | PR = "0" | ||
| 8 | |||
| 9 | SRC_URI = "https://launchpad.net/cloud-init/trunk/${PV}/+download/${BPN}-${PV}.tar.gz \ | ||
| 10 | file://cloud-init-source-local-lsb-functions.patch \ | ||
| 11 | file://distros-add-windriver-skeleton-distro-file.patch \ | ||
| 12 | file://cloud.cfg" | ||
| 13 | |||
| 14 | SRC_URI[md5sum] = "65053a7b2917ad1c26dc0a4d144b59c0" | ||
| 15 | SRC_URI[sha256sum] = "34152e0168c2ffc06284b4fe01ff43f856219228ddb995d5afe4f9a77420d779" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/${BPN}-${PV}" | ||
| 18 | |||
| 19 | DISTUTILS_INSTALL_ARGS_append = " ${@base_contains('DISTRO_FEATURES', 'sysvinit', '--init-system=sysvinit_deb', '', d)}" | ||
| 20 | DISTUTILS_INSTALL_ARGS_append = " ${@base_contains('DISTRO_FEATURES', 'systemd', '--init-system=systemd', '', d)}" | ||
| 21 | |||
| 22 | MANAGE_HOSTS ?= "False" | ||
| 23 | HOSTNAME ?= "" | ||
| 24 | |||
| 25 | do_install_append() { | ||
| 26 | sed -e "s:%MANAGE_HOSTS%:${MANAGE_HOSTS}:g" -i ${WORKDIR}/cloud.cfg | ||
| 27 | sed -e "s:%HOSTNAME%:${HOSTNAME}:g" -i ${WORKDIR}/cloud.cfg | ||
| 28 | install -m 0755 ${WORKDIR}/cloud.cfg ${D}${sysconfdir}/cloud/cloud.cfg | ||
| 29 | } | ||
| 30 | |||
| 31 | inherit setuptools update-rc.d | ||
| 32 | |||
| 33 | FILES_${PN} += "${sysconfdir}/* \ | ||
| 34 | ${datadir}/*" | ||
| 35 | |||
| 36 | INITSCRIPT_PACKAGES = "${PN}" | ||
| 37 | INITSCRIPT_NAME_${BPN} = "cloud-init" \ No newline at end of file | ||
