Skip to content

kobanyan/jenkins-jnlp-slave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins JNLP Slave

Build Status

Install Jenkins JNLP slave on Linux.

Requirements

  • Ansible 2.2 or higher.
  • Linux with systemd.
    Tested:
    • Ubuntu
      • 16.04 (xenial)
      • 18.04 (bionic)
    • CentOS
      • 7
  • Create user and install Java to run Jenkins on slave machine.
  • Create node on Jenkins master.

Role Variables

  • required
    • jenkins_master
      URL of Jenkins server to connect to.
    • jenkins_slave_secret
      Secret key to access Jenkins server as the node.
  • defaults
    • jenkins_slave_user
      User to run Jenkins slave. Default value is jenkins.
    • jenkins_slave_group
      Group to run Jenkins slave. Default value is jenkins.
    • jenkins_slave_name
      Node name of Jenkins slave. Default value is {{ ansible_hostname }}.
    • jenkins_slave_home
      Root directory of Jenkins slave. Default value is /var/lib/jenkins.
    • jenkins_slave_java Java binary path. Default value is /usr/bin/java.

Dependencies

None.

Example Playbook

    - hosts: servers
      roles:
         - { role: kobanyan.jenkins-jnlp-slave,
             jenkins_master: http://jenkins_master,
             jenkins_slave_secret: secret }

License

MIT / BSD

Author Information

kobanyan

About

Ansible role to install Jenkins JNLP slave

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •