Merge "Fix ubuntu image update failures."
authorJamo Luhrsen <jluhrsen@redhat.com>
Mon, 7 Aug 2017 21:56:32 +0000 (21:56 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 7 Aug 2017 21:56:32 +0000 (21:56 +0000)
packer/provision/baseline.sh

index 8aca86314e02d110e5c5ab5fe05d19b1f77f942e..852761030a5a8449c57a64b71eb07ebd9831fd67 100644 (file)
@@ -288,18 +288,18 @@ EOF
     # add additional repositories
     sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
 
-    # facter is not installed by default on the base image and facter package
-    # gets removed when puppet4 is updated. To fix this use version of facter
-    # shipped with puppet4.
-    ensure_ubuntu_install facter
-    # ensure facter is available in $PATH avoid failures in retry loop
-    export PATH="/opt/puppetlabs/bin/:$PATH"
-
     echo "---> Installing base packages"
     apt-get clean
     apt-get update -m
     apt-get upgrade -m
     apt-get dist-upgrade -m
+    apt-get install facter
+
+    # facter is not installed by default on the base image and facter package
+    # gets removed when puppet4 is updated. To fix this use version of facter
+    # shipped with puppet4.
+    # ensure facter is available in $PATH avoid failures in retry loop
+    export PATH="/opt/puppetlabs/bin/:$PATH"
 
     ensure_ubuntu_install unzip xz-utils git libxml-xpath-perl