This file was generated by Ansigenome. Do not edit this file directly but instead have a look at the files in the ./meta/ directory.
Ensures that jenkins swarm is properly installed (using apt
) and configured for a jenkins slave to be connected to the master
This role requires at least Ansible v2.3.1.0
. To install it, run:
Using ansible-galaxy
:
$ ansible-galaxy install alban.andrieu.jenkins-swarm
Using arm
(Ansible Role Manager):
$ arm install alban.andrieu.jenkins-swarm
Using git
:
$ git clone https://github.com/AlbanAndrieu/ansible-jenkins-swarm.git
alban.andrieu.jenkins-slave
More information about alban.andrieu.jenkins-swarm
can be found in the
TODO official alban.andrieu.jenkins-swarm documentation.
List of default variables available in the inventory:
---
jenkins_swarm_enabled: yes # Enable module
jenkins_swarm_client_version: 2.2 # Swarm client version
jenkins_swarm_labels: "java java-medium java-small {{ ansible_os_family }}-{{ ansible_distribution_major_version }}-{{ ansible_distribution_version }}-{{ ansible_architecture }}" # Swarm labels
#jenkins_swarm_client_url: "http://maven.jenkins-ci.org/content/repositories/releases/org/jenkins-ci/plugins/swarm-client/{{ swarm_client_version }}"
jenkins_swarm_client_url: "http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/swarm-client/{{ jenkins_swarm_client_version }}"
jenkins_swarm_executors: 1
jenkins_swarm_description: "Swarm node"
jenkins_swarm_mode: "normal" # normal or exclusive
jenkins_name: jenkins
jenkins_user: jenkins
# python -c 'import crypt; print crypt.crypt("This is my Password", "jenkins")'
# python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"
#http://docs.ansible.com/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module
jenkins_password: "$6$rounds=40000$OvRtT6osJP89GLee$/cizemUXDAH.mW1ILNK1NGk64/TYLgfbHPo3LnFZEZaLsXTOXQV/0f9.bghBsCycJ32rC.meBaujNQI7KgRPQ."
jenkins_group: jenkins
#jenkins_shell: "/bin/false"
jenkins_shell: "/bin/bash"
jenkins_home: /var/lib/jenkins
jenkins_url: https://localhost:8080/
jenkins_slave_name: swarm-{{ ansible_hostname }}
jenkins_remote_username: admin
jenkins_remote_password: admin
#prompted jenkins_remote_username: admin
#prompted jenkins_remote_password: admin
docker_files_generated_directory: "./"
docker_files_enable: no
docker_volume_directory : "/var/log/jenkins"
docker_working_directory : "/home/vagrant"
docker_image_name : "nabla/ansible-jenkins-swarm"
List of internal variables used by the role:
jenkins_slave_name
mydate
Describe how to use in more detail...
$ ansible-galaxy install alban.andrieu.jenkins-swarm
$ vagrant up
The issue tracker is the preferred channel for bug reports, features requests and submitting pull requests.
For pull requests, editor preferences are available in the editor config for easy use in common text editors. Read more and download plugins at http://editorconfig.org.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
roles/alban_andrieu_jenkins_swarm
role was written by:
- Alban Andrieu | e-mail | Twitter | GitHub
- License: GPLv3
Are welcome!
This role is part of the Nabla project. README generated by Ansigenome.
Alban Andrieu