Name: ansible-role-jenkins-node
Owner: PeopleDoc
Description: Provision a Jenkins SSH slave
Created: 2016-07-07 14:09:42.0
Updated: 2018-03-24 08:15:14.0
Pushed: 2017-11-30 16:12:12.0
Homepage: null
Size: 10
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Provision Jenkins SSH slave.
novafloss.jenkins-api
: to create the node with the jenkins REST API# UNIX user vars
jenkins_authorized_key: ssh-rsa AAAA...TBZUI9 jenkins@jenkins.lan
jenkins_home: /var/lib/jenkins
jenkins_username: jenkins
# Jenkins node vars
jenkins_master_url: https://jenkins.mycompany.com/
jenkins_node_executors: 2
jenkins_node_host: jenkins-node-1.lan.mycompany.net (default: {{ ansible_eth0.ipv4.address }})
jenkins_node_port: 22
jenkins_node_labels: [label1, label2]
jenkins_node_name: jenkins-node-1 (default: {{ ansible_hostname }})
jenkins_node_credentials_id: master-ssh
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: slave
roles:
- role: novafloss.jenkins-api
- role: novafloss.jenkins-node
jenkins_authorized_key: ssh-rsa AAAA...TBZUI9 jenkins@jenkins.lan
jenkins_master_url: https://jenkins.mycompany.com/
jenkins_node_credentials_id: master-ssh
Licensed under BSD by @PeopleDoc and contributors.