Add hashicorp's packer 1.0.0 31/9731/1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 15 Jun 2017 01:13:50 +0000 (11:13 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 15 Jun 2017 01:13:50 +0000 (11:13 +1000)
The previous change: 9515, does not pull in the packer binaries
into basebuild, so moving this to baseline is more appropriate.

Change-Id: I149e83635cce5e9ce62d06fccb4d30099ecd3906
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
packer/provision/basebuild.sh
packer/provision/baseline.sh

index 50539ed..08651d1 100644 (file)
@@ -11,12 +11,3 @@ cat <<EOFSTAB >> /etc/fstab
 none /tmp tmpfs defaults 0 0
 
 EOFSTAB
-
-# The following installs hashicorp's packer binary which is required  for
-# ci-management-{verify,merge}-packer jobs
-mkdir /tmp/packer
-cd /tmp/packer
-wget https://releases.hashicorp.com/packer/1.0.0/packer_1.0.0_linux_amd64.zip
-unzip packer_1.0.0_linux_amd64.zip -d /usr/local/bin/
-# rename packer to avoid conflict with binary in cracklib
-mv /usr/local/bin/packer /usr/local/bin/packer.io
index adf23af..66bd6bb 100644 (file)
@@ -137,6 +137,15 @@ Defaults:jenkins !requiretty
 jenkins ALL = NOPASSWD: /usr/bin/update-alternatives
 EOF
 
+    # The following installs hashicorp's packer binary which is required  for
+    # ci-management-{verify,merge}-packer jobs
+    mkdir /tmp/packer
+    cd /tmp/packer
+    wget https://releases.hashicorp.com/packer/1.0.0/packer_1.0.0_linux_amd64.zip
+    unzip packer_1.0.0_linux_amd64.zip -d /usr/local/bin/
+    # rename packer to avoid conflict with binary in cracklib
+    mv /usr/local/bin/packer /usr/local/bin/packer.io
+
     # Do any Distro specific installations here
     echo "Checking distribution"
     FACTER_OS=$(/usr/bin/facter operatingsystem)