Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

AlbanAndrieu/ansible-jenkins-swarm

Repository files navigation

Nabla roles/alban_andrieu_jenkins_swarm

This file was generated by Ansigenome. Do not edit this file directly but instead have a look at the files in the ./meta/ directory.

License Travis CI Branch Donate Ansible Galaxy Platforms

Ensures that jenkins swarm is properly installed (using apt) and configured for a jenkins slave to be connected to the master

Installation

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

Role dependencies

  • alban.andrieu.jenkins-slave

Documentation

More information about alban.andrieu.jenkins-swarm can be found in the TODO official alban.andrieu.jenkins-swarm documentation.

Role variables

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

Detailed usage guide

Describe how to use in more detail...

Testing

$ ansible-galaxy install alban.andrieu.jenkins-swarm
$ vagrant up

Contributing

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.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors and license

roles/alban_andrieu_jenkins_swarm role was written by:

License

Feedback, bug-reports, requests, ...

Are welcome!


This role is part of the Nabla project. README generated by Ansigenome.


Alban Andrieu

linkedin

About

Ansible role to manage Jenkins swarm client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published