Skip to content
Permalink
Browse files

Use list of packages instead of loop in *all* package installation st…

…anzas.
  • Loading branch information...
riccardomurri committed Mar 8, 2019
1 parent 70dd1df commit c1c43b72142020f1abbcb86032fb59f5d6d3f72d
Showing with 322 additions and 382 deletions.
  1. +1 −2 elasticluster/share/playbooks/roles/autofs/tasks/main.yml
  2. +5 −9 elasticluster/share/playbooks/roles/ceph/tasks/init-Debian.yml
  3. +6 −9 elasticluster/share/playbooks/roles/ceph/tasks/init-RedHat.yml
  4. +1 −1 elasticluster/share/playbooks/roles/common/tasks/gc3repo.yml
  5. +3 −4 elasticluster/share/playbooks/roles/cuda/tasks/init-Debian.yml
  6. +9 −2 elasticluster/share/playbooks/roles/docker-ce/tasks/init-Debian.yml
  7. +3 −1 elasticluster/share/playbooks/roles/docker-ce/tasks/main.yml
  8. +60 −62 elasticluster/share/playbooks/roles/easybuild/tasks/deps-Debian.yml
  9. +40 −43 elasticluster/share/playbooks/roles/easybuild/tasks/deps-RedHat.yml
  10. +1 −2 elasticluster/share/playbooks/roles/ganglia-gmetad/tasks/main.yml
  11. +1 −2 elasticluster/share/playbooks/roles/ganglia-gmond/tasks/main.yml
  12. +1 −2 elasticluster/share/playbooks/roles/ganglia-web/tasks/main.yml
  13. +2 −3 elasticluster/share/playbooks/roles/glusterfs-common/tasks/debian.yml
  14. +1 −1 elasticluster/share/playbooks/roles/glusterfs-server/tasks/init-RedHat.yml
  15. +3 −4 elasticluster/share/playbooks/roles/glusterfs-server/tasks/main.yml
  16. +7 −8 elasticluster/share/playbooks/roles/hadoop-common/tasks/main.yml
  17. +2 −3 elasticluster/share/playbooks/roles/hdfs-datanode/tasks/main.yml
  18. +5 −6 elasticluster/share/playbooks/roles/hdfs-namenode/tasks/main.yml
  19. +3 −4 elasticluster/share/playbooks/roles/hive-server/tasks/main.yml
  20. +4 −5 elasticluster/share/playbooks/roles/hive/tasks/main.yml
  21. +1 −2 elasticluster/share/playbooks/roles/iptables/tasks/main.yml
  22. +1 −2 elasticluster/share/playbooks/roles/jenkins/tasks/main.yml
  23. +1 −2 elasticluster/share/playbooks/roles/jupyter/tasks/python.yml
  24. +14 −17 elasticluster/share/playbooks/roles/kubernetes-common/tasks/debian.yml
  25. +6 −7 elasticluster/share/playbooks/roles/kubernetes-common/tasks/redhat.yml
  26. +11 −16 elasticluster/share/playbooks/roles/lmod/tasks/build.yml
  27. +9 −11 elasticluster/share/playbooks/roles/lua/tasks/main.yml
  28. +6 −8 elasticluster/share/playbooks/roles/nfs-client/tasks/main.yml
  29. +1 −2 elasticluster/share/playbooks/roles/nfs-server/tasks/main.yml
  30. +1 −2 elasticluster/share/playbooks/roles/nis/tasks/main.yml
  31. +1 −2 elasticluster/share/playbooks/roles/nis/tasks/ypserv.yml
  32. +21 −22 elasticluster/share/playbooks/roles/pbspro/tasks/master.yml
  33. +9 −10 elasticluster/share/playbooks/roles/pbspro/tasks/worker.yml
  34. +4 −5 elasticluster/share/playbooks/roles/pdsh/tasks/main.yml
  35. +1 −2 elasticluster/share/playbooks/roles/r/tasks/main.yml
  36. +7 −8 elasticluster/share/playbooks/roles/rstudio/tasks/main.yml
  37. +25 −31 elasticluster/share/playbooks/roles/slurm-client/tasks/main.yml
  38. +5 −7 elasticluster/share/playbooks/roles/slurm-common/tasks/main.yml
  39. +2 −2 elasticluster/share/playbooks/roles/slurm-common/tasks/munge.yml
  40. +3 −4 elasticluster/share/playbooks/roles/slurm-master/tasks/db.yml
  41. +1 −2 elasticluster/share/playbooks/roles/slurm-master/tasks/install-slurmctld.yml
  42. +1 −2 elasticluster/share/playbooks/roles/slurm-master/tasks/install-slurmdbd.yml
  43. +1 −2 elasticluster/share/playbooks/roles/slurm-worker/tasks/main.yml
  44. +4 −5 elasticluster/share/playbooks/roles/smb-server/tasks/main.yml
  45. +7 −8 elasticluster/share/playbooks/roles/spark-common/tasks/main.yml
  46. +3 −4 elasticluster/share/playbooks/roles/spark-master/tasks/main.yml
  47. +2 −3 elasticluster/share/playbooks/roles/spark-worker/tasks/main.yml
  48. +5 −6 elasticluster/share/playbooks/roles/torque/tasks/master.yml
  49. +6 −7 elasticluster/share/playbooks/roles/yarn-master/tasks/main.yml
  50. +5 −8 elasticluster/share/playbooks/roles/yarn-worker/tasks/main.yml
@@ -38,9 +38,8 @@

- name: Install Autofs
package:
name: '{{ item }}'
name: '{{autofs_packages}}'
state: '{{ pkg_install_state }}'
loop: '{{autofs_packages}}'


- name: Ensure autofs is running and starts at boot
@@ -25,12 +25,9 @@
- ceph
- server
apt:
pkg: '{{item}}'
name: 'ceph'
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
loop:
- ceph
#- linux-image-extra-{{ansible_kernel}}
when: 'is_ceph_server'


@@ -39,12 +36,11 @@
- ceph
- client
package:
name: '{{item}}'
name:
- ceph-common
- ceph-fuse
- rbd-fuse
state: '{{ pkg_install_state }}'
loop:
- ceph-common
- ceph-fuse
- rbd-fuse
when: 'is_ceph_client'


@@ -16,10 +16,8 @@
- ceph
- server
package:
name: '{{item}}'
name: 'ceph'
state: '{{ pkg_install_state }}'
loop:
- ceph
when: 'is_ceph_server'


@@ -28,13 +26,12 @@
- ceph
- client
package:
name: '{{item}}'
name:
- ceph-common
- ceph-fuse
- cephfs-java
- rbd-fuse
state: '{{ pkg_install_state }}'
loop:
- ceph-common
- ceph-fuse
- cephfs-java
- rbd-fuse
when: 'is_ceph_client'


@@ -5,7 +5,7 @@

- name: Install required package for apt_repository. BUG!
apt:
pkg: python-software-properties
name: python-software-properties
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
when: is_debian_or_ubuntu
@@ -2,11 +2,10 @@

- name: Install software prerequisites
package:
name: '{{ item }}'
name:
- 'linux-headers-generic'
- 'gcc'
state: present
loop:
- 'linux-headers-generic'
- 'gcc'


- name: Add signing key for CUDA repository
@@ -8,7 +8,12 @@

- name: 'Uninstall old versions'
apt:
name: ['docker', 'docker-engine', 'docker.io', 'containerd', 'runc']
name:
- docker
- docker-engine
- docker.io
- containerd
- runc
state: absent
ignore_errors: yes

@@ -20,7 +25,9 @@
# 2) ca-certificates, a bundle of common certificate authorities' certificates
- name: 'Install Docker CE dependencies'
apt:
name: ['apt-transport-https', 'ca-certificates']
name:
- apt-transport-https
- ca-certificates
state: '{{ pkg_install_state }}'


@@ -25,7 +25,9 @@

- name: 'Install Docker Community Edition'
apt:
name: ['docker-ce', 'docker-ce-cli']
name:
- docker-ce
- docker-ce-cli
state: '{{ pkg_install_state }}'


@@ -6,82 +6,80 @@

- name: Install required dependencies of EasyBuild (Debian/Ubuntu)
apt:
name: '{{item}}'
name:
# see: http://easybuild.readthedocs.io/en/latest/Installation.html#dependencies
#
# required dependencies
- python2.7
- g++
- gcc
- gfortran
- libc6-dev
- make
- tcsh
# required shell tools
- bzip2
- gzip
- tar
- unzip
- xz-utils
- patch
- mlocate
# SW needed to build toolchains and common recipes
- libibverbs-dev
- python2.7-dev
- python-pip
- python-virtualenv
- libgsl0-dev
- libcurl4-openssl-dev
- libxml2-dev
- libssl-dev
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
loop:
# see: http://easybuild.readthedocs.io/en/latest/Installation.html#dependencies
#
# required dependencies
- python2.7
- g++
- gcc
- gfortran
- libc6-dev
- make
- tcsh
# required shell tools
- bzip2
- gzip
- tar
- unzip
- xz-utils
- patch
- mlocate
# SW needed to build toolchains and common recipes
- libibverbs-dev
- python2.7-dev
- python-pip
- python-virtualenv
- libgsl0-dev
- libcurl4-openssl-dev
- libxml2-dev
- libssl-dev


- name: Install optional dependencies of EasyBuild (Debian/Ubuntu)
apt:
name: '{{item}}'
name:
- git
- graphviz
- mercurial
- python-pygraph
- subversion
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
loop:
- git
- graphviz
- mercurial
- python-pygraph
- subversion
ignore_errors: True


- name: Install "filtered dependency" software (Debian/Ubuntu)
apt:
name: '{{ item }}'
name:
# required by EasyBuild to build some SW
- fontconfig
- graphviz
- libbz2-dev
- libfontconfig1-dev
- libibverbs-dev
- libncurses-dev
- libncurses5-dev
- libreadline-dev
- libssl-dev
- m4
- perl-modules # Thread::Queue is needed to build `automake`
- zlib1g-dev
# required by X11 software
- libgl1-mesa-glx
- libxi6
- libxmu6
- libxrandr2
- libxt6
- libxtst6
- libx11-dev
- libxext-dev
- libxft-dev
- libxinerama-dev
- libxt-dev
state: '{{ pkg_install_state }}'
allow_unauthenticated: '{{ not insecure_https_downloads|default("no")|bool }}'
loop:
# required by EasyBuild to build some SW
- fontconfig
- graphviz
- libbz2-dev
- libfontconfig1-dev
- libibverbs-dev
- libncurses-dev
- libncurses5-dev
- libreadline-dev
- libssl-dev
- m4
- perl-modules # Thread::Queue is needed to build `automake`
- zlib1g-dev
# required by X11 software
- libgl1-mesa-glx
- libxi6
- libxmu6
- libxrandr2
- libxt6
- libxtst6
- libx11-dev
- libxext-dev
- libxft-dev
- libxinerama-dev
- libxt-dev
ignore_errors: True
@@ -6,59 +6,56 @@

- name: Install required dependencies of EasyBuild (RHEL-compatible)
package:
name: '{{item}}'
name:
# see: http://easybuild.readthedocs.io/en/latest/Installation.html#dependencies
#
# required dependencies
- python
- "@Development tools"
- gcc
- gcc-c++
- gcc-gfortran
- glibc-devel
- make
# required shell tools
- bzip2
- gzip
- mlocate
- patch
- tar
- unzip
- xz
# SW needed to build toolchains and common recipes
- gsl-devel
- libcurl-devel
- libibverbs-devel
- libxml2-devel
- openssl-devel
- python-devel
- python-pip
- python-virtualenv
state: '{{ pkg_install_state }}'
loop:
# see: http://easybuild.readthedocs.io/en/latest/Installation.html#dependencies
#
# required dependencies
- python
- "@Development tools"
- gcc
- gcc-c++
- gcc-gfortran
- glibc-devel
- make
# required shell tools
- bzip2
- gzip
- mlocate
- patch
- tar
- unzip
- xz
# SW needed to build toolchains and common recipes
- gsl-devel
- libcurl-devel
- libibverbs-devel
- libxml2-devel
- openssl-devel
- python-devel
- python-pip
- python-virtualenv


- name: Install optional dependencies of EasyBuild (RHEL-compatible)
package:
name: '{{item}}'
name:
- git
- graphviz
- mercurial
- subversion
state: '{{ pkg_install_state }}'
loop:
- git
- graphviz
- mercurial
- subversion
ignore_errors: True


- name: Install "filtered dependency" software (RHEL-compatible)
package:
name: '{{ item }}'
name:
- bzip2-devel
- m4
- ncurses-devel
- ncurses-static
- readline-devel
- readline-static
state: '{{ pkg_install_state }}'
loop:
- bzip2-devel
- m4
- ncurses-devel
- ncurses-static
- readline-devel
- readline-static
ignore_errors: True
@@ -14,9 +14,8 @@
- ganglia-gmetad
- gmetad
package:
pkg: '{{item}}'
name: '{{ ganglia_gmetad_packages }}'
state: '{{ pkg_install_state }}'
loop: '{{ ganglia_gmetad_packages }}'


- name: Configure `gmetad`
@@ -14,9 +14,8 @@
- ganglia-gmond
- gmond
package:
pkg: '{{item}}'
pkg: '{{ ganglia_gmond_packages }}'
state: '{{ pkg_install_state }}'
loop: '{{ ganglia_gmond_packages }}'


- name: Configure `gmond`
Oops, something went wrong.

0 comments on commit c1c43b7

Please sign in to comment.
You can’t perform that action at this time.