Added script to build a murano image in the contrib folder.
authorThomas Goirand <zigo@debian.org>
Wed, 6 May 2015 20:31:06 +0000 (22:31 +0200)
committerThomas Goirand <zigo@debian.org>
Wed, 6 May 2015 20:31:06 +0000 (22:31 +0200)
contrib/murano-image/build-murano-image [new file with mode: 0755]
contrib/murano-image/murano-agent-hook [new file with mode: 0755]
debian/changelog

diff --git a/contrib/murano-image/build-murano-image b/contrib/murano-image/build-murano-image
new file mode 100755 (executable)
index 0000000..75e53df
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+build-openstack-debian-image --release jessie --hook-script murano-agent-hook
diff --git a/contrib/murano-image/murano-agent-hook b/contrib/murano-image/murano-agent-hook
new file mode 100755 (executable)
index 0000000..c10ef80
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+OPENSTACK_RELEASE=kilo
+TARGET_OS=jessie
+
+# Adding Mirantis repository until murano-agent is in official backports
+echo "deb http://${OPENSTACK_RELEASE}-${TARGET_OS}.pkgs.mirantis.com/debian ${TARGET_OS}-${OPENSTACK_RELEASE}-backports main
+deb http://${OPENSTACK_RELEASE}-${TARGET_OS}.pkgs.mirantis.com/debian ${TARGET_OS}-${OPENSTACK_RELEASE}-backports-nochange main
+" >${BODI_CHROOT_PATH}/etc/apt/sources.list.d/mirantis-backports.list
+wget -O ${BODI_CHROOT_PATH}/${OPENSTACK_RELEASE}-${TARGET_OS}-archive-keyring_0.1_all.deb \
+       http://${OPENSTACK_RELEASE}-${TARGET_OS}.pkgs.mirantis.com/debian/pool/${TARGET_OS}-${OPENSTACK_RELEASE}-backports-nochange/main/k/${OPENSTACK_RELEASE}-${TARGET_OS}-archive-keyring/${OPENSTACK_RELEASE}-${TARGET_OS}-archive-keyring_0.1_all.deb
+chroot ${BODI_CHROOT_PATH} dpkg -i /${OPENSTACK_RELEASE}-${TARGET_OS}-archive-keyring_0.1_all.deb
+rm ${BODI_CHROOT_PATH}/${OPENSTACK_RELEASE}-${TARGET_OS}-archive-keyring_0.1_all.deb
+chroot ${BODI_CHROOT_PATH} apt-get update
+chroot ${BODI_CHROOT_PATH} apt-get install -y murano-agent
+
index 69b0a60..f6e4d76 100644 (file)
@@ -1,3 +1,9 @@
+openstack-debian-images (1.4) UNRELEASED; urgency=medium
+
+  * Added script to build a murano image in the contrib folder.
+
+ -- Thomas Goirand <zigo@debian.org>  Wed, 06 May 2015 22:30:46 +0200
+
 openstack-debian-images (1.3) unstable; urgency=medium
 
   * Removed the tweak of /etc/modules, as acpiphp and pci_hotplug aren't in the