summaryrefslogtreecommitdiffstats
path: root/release/Makefile.vm
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2014-10-29 17:04:09 +0000
committergjb <gjb@FreeBSD.org>2014-10-29 17:04:09 +0000
commitbe176f72fe4aae01058f956718665299e1604d4e (patch)
treed8ba5ba8043c93ac7edf92e7e5d9da98c21ec4e3 /release/Makefile.vm
parenta452e67d0444028810849a32f47e3267b5d9560a (diff)
downloadFreeBSD-src-be176f72fe4aae01058f956718665299e1604d4e.zip
FreeBSD-src-be176f72fe4aae01058f956718665299e1604d4e.tar.gz
Initial commit providing a mechanism to create
openstack images as part of the release build. This mimics the way Microsoft Azure images are built, with the addition of installing the net/cloud-init package and adding a (commented) rc.conf(5) entry for cloudinit. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release/Makefile.vm')
-rw-r--r--release/Makefile.vm14
1 files changed, 13 insertions, 1 deletions
diff --git a/release/Makefile.vm b/release/Makefile.vm
index ce7f0ea..0ef7fc8 100644
--- a/release/Makefile.vm
+++ b/release/Makefile.vm
@@ -10,8 +10,10 @@ VMFORMATS?= vhd vmdk qcow2 raw
VMSIZE?= 20G
VMBASE?= vm
-CLOUDWARE?= AZURE
+CLOUDWARE?= AZURE \
+ OPENSTACK
AZURE_FORMAT= vhdf
+OPENSTACK_FORMAT=qcow2
.if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE) && !empty(CLOUDWARE)
. for _CW in ${CLOUDWARE}
@@ -65,3 +67,13 @@ vm-azure:
${WORLDDIR} ${.TARGET} ${VMSIZE} ${AZUREIMAGE}
.endif
touch ${.TARGET}
+
+vm-openstack:
+.if exists(${.CURDIR}/${TARGET}/mk-openstack.sh)
+ env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
+ OPENSTACKCONF=${OPENSTACKCONF}
+ OPENSTACK_FORMAT=${OPENSTACK_FORMAT} \
+ ${.CURDIR}/${TARGET}/mk-openstack.sh ${.TARGET} openstack.img \
+ ${WORLDDIR} ${.TARGET} ${VMSIZE} ${OPENSTACKIMAGE}
+.endif
+ touch ${.TARGET}
OpenPOWER on IntegriCloud