forked from ISTI-ansible-roles/ansible-roles
Jenkins: install a list of packages on the slaves too.
This commit is contained in:
parent
84f1bce64b
commit
da60534b12
|
@ -13,3 +13,28 @@ jenkins_maven_settings_dirs:
|
|||
- .m2
|
||||
|
||||
jenkins_maven_settings_url: http://localhost/settings.xml
|
||||
|
||||
jenkins_common_deb_package_requirements:
|
||||
- python-svn
|
||||
- dblatex
|
||||
- dos2unix
|
||||
- build-essential
|
||||
- curl
|
||||
- fabric
|
||||
- git
|
||||
- git-svn
|
||||
- maven
|
||||
- python-dev
|
||||
- sloccount
|
||||
- subversion
|
||||
- subversion-tools
|
||||
- unzip
|
||||
|
||||
jenkins_common_rh_package_requirements:
|
||||
- curl
|
||||
- dblatex
|
||||
- docbook-utils-pdf
|
||||
- texlive-cmap
|
||||
- dos2unix
|
||||
- maven
|
||||
- git
|
||||
|
|
|
@ -1,4 +1,18 @@
|
|||
---
|
||||
- block:
|
||||
- name: Install the common deb packages
|
||||
apt: pkg={{ jenkins_common_deb_package_requirements }} state={{ jenkins_pkg_state }} update_cache=yes cache_valid_time=3600
|
||||
|
||||
when: ansible_distribution_file_variety == "Debian"
|
||||
tags: [ 'jenkins', 'jenkins_common', 'jenkins_master', 'jenkins_slave', 'jenkins_slaves', 'jenkins_pkgs' ]
|
||||
|
||||
- block:
|
||||
- name: Install the common RH/CentOS packages
|
||||
yum: pkg={{ jenkins_common_rh_package_requirements }} state={{ jenkins_pkg_state }}
|
||||
|
||||
when: ansible_distribution_file_variety != "Debian"
|
||||
tags: [ 'jenkins', 'jenkins_common', 'jenkins_master', 'jenkins_slave', 'jenkins_slaves', 'jenkins_pkgs' ]
|
||||
|
||||
- block:
|
||||
- name: Create the ssh key on the master node
|
||||
user: name={{ jenkins_username }} generate_ssh_key=True
|
||||
|
|
|
@ -15,27 +15,11 @@ jenkins_packages:
|
|||
- jenkins
|
||||
|
||||
jenkins_deb_package_requirements:
|
||||
- python-svn
|
||||
- dblatex
|
||||
- imagemagick
|
||||
- graphviz
|
||||
- fonts-dejavu
|
||||
- dos2unix
|
||||
- build-essential
|
||||
- curl
|
||||
- fabric
|
||||
- git
|
||||
- git-svn
|
||||
- maven
|
||||
- python-dev
|
||||
- sloccount
|
||||
- subversion
|
||||
- subversion-tools
|
||||
- unzip
|
||||
|
||||
jenkins_rh_package_requirements:
|
||||
- curl
|
||||
- dblatex
|
||||
- docbook-utils-pdf
|
||||
- texlive-cmap
|
||||
- ImageMagick
|
||||
|
@ -46,7 +30,6 @@ jenkins_rh_package_requirements:
|
|||
- dejavu-sans-mono-fonts
|
||||
- dejavu-serif-fonts
|
||||
- dejavu-fonts-common
|
||||
- dos2unix
|
||||
|
||||
jenkins_stb_support: False
|
||||
jenkins_sbt_launch_jars:
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
register: jenkins_has_been_restarted
|
||||
|
||||
when: jenkins_install
|
||||
tags: [ 'jenkins', 'jenkins_master' ]
|
||||
tags: [ 'jenkins', 'jenkins_master', 'jenkins_pkgs' ]
|
||||
|
||||
- block:
|
||||
- name: Ensure that jenkins is stoppend and disabled
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
register: jenkins_has_been_restarted
|
||||
|
||||
when: jenkins_install
|
||||
tags: [ 'jenkins', 'jenkins_master' ]
|
||||
tags: [ 'jenkins', 'jenkins_master', 'jenkins_pkgs' ]
|
||||
|
||||
- block:
|
||||
- name: Remove jenkins
|
||||
|
|
Loading…
Reference in New Issue