Refactor packer var files to extend the use for different envs 95/50795/6
authorGuy Belotzerkovsky <guy@hpe.com>
Mon, 23 Jan 2017 09:42:39 +0000 (11:42 +0200)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 30 Jan 2017 04:10:24 +0000 (23:10 -0500)
Change-Id: Icdb55915b9ce99f1b4d5e3c27a67ca523feb20ef
Signed-off-by: Guy Belotzerkovsky <guy@hpe.com>
jenkins-scripts/jenkins-init-script-local-env.sh [new file with mode: 0755]
jenkins-scripts/jenkins-init-script.sh
packer/provision/system_reseal.sh
packer/provision/system_reseal_local_env.sh [new file with mode: 0644]

diff --git a/jenkins-scripts/jenkins-init-script-local-env.sh b/jenkins-scripts/jenkins-init-script-local-env.sh
new file mode 100755 (executable)
index 0000000..0e490f4
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+## will be added in local environment
index 88c5eb620bf285281c51cbcbeb6b9a46108ed815..efb8b1a79733a57fb878c801b71d453e9ddc6053 100755 (executable)
@@ -20,3 +20,6 @@ source /tmp/system_type.sh
 # Create the jenkins user last so that hopefully we don't have to deal with
 # guard files
 ./create_jenkins_user.sh
+
+## add local environment changes post scripts
+./jenkins-init-script-local-env.sh
index f8bc7dc5f9b4b865df8ebf7c06eb617c3fa3bb98..865fc935bf650d18a1023386853e05d1cd6437d4 100644 (file)
@@ -32,6 +32,10 @@ rm -rf /var/lib/cloud/*
 # clean-up any manual packer uploads
 rm -rf /tmp/packer
 
+# add local script for remote environments
+
+./system_reseal_local_env.sh
+
 # Force a system sync and sleep to get around any SSD issues
 echo "Forcing sync and sleep for 10sec"
 sync
diff --git a/packer/provision/system_reseal_local_env.sh b/packer/provision/system_reseal_local_env.sh
new file mode 100644 (file)
index 0000000..af72d99
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+# local env changes will be added here