Configure packer install 69/16469/2
authorVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Thu, 13 Dec 2018 21:27:30 +0000 (15:27 -0600)
committerVanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Thu, 14 Feb 2019 15:37:03 +0000 (09:37 -0600)
Configuring packer to install based on distribution version

Change-Id: I4696971de718ec246d1d1b08545644ca18016ba8
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
packer/provision/local-builder.yaml

index 20658d3..d33290e 100644 (file)
@@ -9,7 +9,7 @@
     - include_role: name=lfit.system-update
 
   tasks:
-    - name: 'Install FD.io Required Packages apt'
+    - name: 'Install FD.io Required 16.04 Packages'
       apt:
         name:
           - gdb
           - ruby-dev
           - zip
         state: present
-      when: ansible_os_family == 'Debian'
+      # yamllint disable-line rule:line-length
+      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'
       become: true
 
-    - name: 'Install FD.io Required Packages yum'
+    - name: 'Install FD.io Required 18.04 Packages'
+      apt:
+        name:
+          - gdb
+          - gdbserver
+          - bridge-utils
+          - texlive-fonts-recommended
+          - tex-common
+          - texlive-base
+          - texlive-binaries
+          - texlive-pictures
+          - texlive-latex-recommended
+          - preview-latex-style
+          - texlive-latex-extra
+          - cloud-initramfs-growroot
+          - cloud-initramfs-rescuevol
+          - libmysqlclient-dev
+          - doxygen
+          - python-pyparsing
+          - asciidoc
+          - dblatex
+          - source-highlight
+          - lcov
+          - gcc-multilib
+          - bison
+          - ccache
+          - dkms
+          - libganglia1-dev
+          - libapr1-dev
+          - libconfuse-dev
+          - exuberant-ctags
+          - cscope
+          - indent
+          - emacs
+          - libxslt-dev
+          - bc
+          - linux-image-extra-virtual
+          - google-mock
+          - debian-xcontrol
+          - pristine-tar
+          - python-sphinx
+          - libstdc++5
+          - python-scapy
+          - inkscape
+          - python-sphinx-rtd-theme
+          - python3-sphinx
+          - libnuma-dev
+          - libibverbs-dev
+          - ruby-dev
+          - zip
+        state: present
+      # yamllint disable-line rule:line-length
+      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '18.04'
+      become: true
+
+    - name: 'Install FD.io Required CentOS 7 Packages'
       yum:
         name:
           - apr-devel