novafloss.jenkins-node

novafloss.jenkins-node

Set up a Jenkins SSH slave.

Requirements

  • novafloss.jenkins-api: needed to create the node using the Jenkins REST API.

Role Variables

# UNIX user settings
jenkins_authorized_key: ssh-rsa AAAA...TBZUI9 [email protected]
jenkins_home: /var/lib/jenkins
jenkins_username: jenkins

# Jenkins node settings
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

Here’s an example of how to use your role (with variables included as parameters):

- hosts: slave
  roles:
    - role: novafloss.jenkins-api
    - role: novafloss.jenkins-node
      jenkins_authorized_key: ssh-rsa AAAA...TBZUI9 [email protected]
      jenkins_master_url: https://jenkins.mycompany.com/
      jenkins_node_credentials_id: master-ssh

Licensed under BSD by @PeopleDoc and contributors.

Informazioni sul progetto

Provision Jenkins SSH slave using jenkins-api module

Installa
ansible-galaxy install novafloss.jenkins-node
Licenza
Unknown
Download
602
Proprietario
Free, public and open source repositories from PeopleDoc R&D