Fix PackageCloud install on Ubuntu 23/25323/1
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Thu, 20 Feb 2020 15:41:31 +0000 (09:41 -0600)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Thu, 20 Feb 2020 15:41:31 +0000 (09:41 -0600)
The new images don't have PackageCloud installed. This change is to
install PackageCloud on Ubuntu 16.04 and 18.04

Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Change-Id: I142cecacc947bbddd82f42dbfffeb1fb2b36298d

packer/provision/local-builder.yaml

index bcdf512..e5af263 100644 (file)
       when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
       become: true
 
+    - name: 'Install PackageCloud'
+      command: 'gem install package_cloud'
+      # yamllint disable-line rule:line-length
+      when: ansible_distribution == 'Ubuntu'
+      become: true
+
     - name: 'Install FD.io Required CentOS 7 Packages'
       yum:
         name: