Skip to content

dinivas/ansible-role-jenkins-slave

Repository files navigation

Role Jenkins Slave

Build Status

This role create a jenkins slave via JNLP

Requirements

You should have a jenkins master already install.

Role Variables

Variables Required Default value Description
jenkins_master_url true None Url of ypur jenkins master
jenkins_master_user true None Username for connection to master
jenkins_master_password true None Password for connection to master
jenkins_slave_home true None Jenkins slave home path (I suggest you to configure a fileSystem)
jenkins_slave_user true None Configure the user on jenkins slave
jenkins_slave_group true None Configure group on jenkins slave
jenkins_slave_name true None Name of your jenkins slave node

Dependencies

singleplatform-eng.users
geerlingguy.java

Example Playbook

- hosts: servers
  roles:
    - role: ansible-role-jenkins-slave
      jenkins_master_url: "http://127.0.0.1:8080"
      jenkins_master_user: admin
      jenkins_master_password: password
      jenkins_slave_home: /home/jenkins
      jenkins_slave_nb_executor: 5
      jenkins_slave_user: jenkins
      jenkins_slave_group: jenkins
      jenkins_slave_name: docker-slave

If you only want to install slave service (without registering to the master), you can use --skip-tags "register"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published