peopledoc/ansible-role-jenkins-node

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

novafloss.jenkins-node

Provision Jenkins SSH slave.

Requirements
Role Variables
# 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
Example Playbook

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
Copyright

Licensed under BSD by @PeopleDoc and contributors.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.