summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2015-04-14 23:39:48 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-04-14 23:39:48 -0400
commit7eeab1b65c3413645d4259643c13bc791b5a7f98 (patch)
tree2266fe9f9525afc77e130f0b6132a302055e9d02 /meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb
parent274cf835e275e8ec2f1a4260bd4437b5cdcaed92 (diff)
downloadmeta-cloud-services-7eeab1b65c3413645d4259643c13bc791b5a7f98.tar.gz
cloud-init: update to 0.7.6
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb')
-rw-r--r--meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb b/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb
new file mode 100644
index 0000000..3a5c420
--- /dev/null
+++ b/meta-openstack/recipes-extended/cloud-init/cloud-init_0.7.6.bb
@@ -0,0 +1,53 @@
1DESCRIPTION = "Init scripts for use on cloud images"
2HOMEPAGE = "https://launchpad.net/cloud-init"
3SECTION = "devel/python"
4LICENSE = "GPLv3"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504"
6
7PR = "r0"
8
9SRC_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
14SRC_URI[md5sum] = "cd392e943dd0165e90a6d56afd0e4ad3"
15SRC_URI[sha256sum] = "9e8fd22eb7f6e40ae6a5f66173ddc3cc18f65ee406c460a728092b37db2f3ed7"
16
17S = "${WORKDIR}/${BPN}-${PV}"
18
19DISTUTILS_INSTALL_ARGS_append = " ${@base_contains('DISTRO_FEATURES', 'sysvinit', '--init-system=sysvinit_deb', '', d)}"
20DISTUTILS_INSTALL_ARGS_append = " ${@base_contains('DISTRO_FEATURES', 'systemd', '--init-system=systemd', '', d)}"
21
22MANAGE_HOSTS ?= "False"
23HOSTNAME ?= ""
24
25do_install_prepend() {
26 sed -e 's:/usr/lib/${BPN}:${libdir}/${BPN}:' -i ${S}/setup.py
27}
28
29do_install_append() {
30 install -m 0755 ${WORKDIR}/cloud.cfg ${D}${sysconfdir}/cloud/cloud.cfg
31 if [ -z "${OPENSTACKCHEF_ENABLED}" ]; then
32 sed -e "s:%MANAGE_HOSTS%:${MANAGE_HOSTS}:g" -i ${D}${sysconfdir}/cloud/cloud.cfg
33 sed -e "s:%HOSTNAME%:${HOSTNAME}:g" -i ${D}${sysconfdir}/cloud/cloud.cfg
34 fi
35 ln -s ${libdir}/${BPN}/uncloud-init ${D}${sysconfdir}/cloud/uncloud-init
36 ln -s ${libdir}/${BPN}/write-ssh-key-fingerprints ${D}${sysconfdir}/cloud/write-ssh-key-fingerprints
37}
38
39inherit setuptools update-rc.d openstackchef
40
41CHEF_SERVICES_CONF_FILES := " \
42 ${sysconfdir}/cloud/cloud.cfg \
43 "
44
45FILES_${PN} += "${sysconfdir}/* \
46 ${datadir}/*"
47
48INITSCRIPT_PACKAGES = "${PN}"
49INITSCRIPT_NAME_${BPN} = "cloud-init"
50
51RDEPENDS_${PN} = "sysklogd \
52 python \
53 "