From 2aa973ce201fdeb5d385708ae243ab14d3bcefb7 Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Tue, 17 May 2016 12:03:02 -0700 Subject: Document the process of re-spinning an image * Document the process of respinning jcloud images in README.txt * Create /scripts/respin-jcloud-images.sh * Create /vagrant/lib/respin-functions.sh * Automate the process of fetching latest base images * Automate the process of creating new "LF upload" snapshots * Automate process of creating jcloud image - Boot fresh VM - run bootstrap.sh - run system_reseal.sh - snapshot re-sealed system * Unable to automate updating jcloud image regex for staging nodes * Correct shasum to sha1sum * Add cloud-initramfs-* to PACKAGES list * Install cloud-init during system reseal Change-Id: Ie70d5f1fdee0e9f06810da6f37bfc710e3e06b8e Signed-off-by: C.J. Collier --- scripts/respin-jcloud-images.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 scripts/respin-jcloud-images.sh (limited to 'scripts/respin-jcloud-images.sh') diff --git a/scripts/respin-jcloud-images.sh b/scripts/respin-jcloud-images.sh new file mode 100755 index 000000000..3d1195847 --- /dev/null +++ b/scripts/respin-jcloud-images.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +# Copyright 2016 The Linux Foundation +source ../vagrant/lib/respin-functions.sh + +source ${PVE_PATH}/bin/activate + +# Acquire bootstrap images +#download_deb_image 'Ubuntu' '14.04' 'amd64' +#download_deb_image 'Ubuntu' '16.04' 'amd64' +#download_rh_image 'CentOS' '7' 'x86_64' + +# Push images to openstack via glance +#create_deb_image 'Ubuntu' '14.04' 'amd64' +#create_deb_image 'Ubuntu' '16.04' 'amd64' +#create_rh_image 'CentOS' '7' 'x86_64' + +# Respin images +respin_deb_image 'Ubuntu' '14.04' 'amd64' +respin_deb_image 'Ubuntu' '16.04' 'amd64' +respin_rh_image 'CentOS' '7' 'x86_64' -- cgit 1.2.3-korg