Install config files for jenkins slaves
This commit is contained in:
parent
69893d20c2
commit
4aa23d9e3c
2 changed files with 34 additions and 0 deletions
|
@ -60,6 +60,21 @@
|
|||
- jenkins/master
|
||||
- config
|
||||
|
||||
- name: install jenkins slaves config files
|
||||
template: >
|
||||
src="slave-config.xml.j2"
|
||||
dest="/var/lib/jenkins/nodes/{{ item.name }}/config.xml"
|
||||
with_items:
|
||||
- name: EL6
|
||||
host: jenkins-el6.fedorainfracloud.org
|
||||
description: CentOS release 6.6 (Final)
|
||||
notify:
|
||||
- restart jenkins
|
||||
tags:
|
||||
- jenkins
|
||||
- jenkins/master
|
||||
- config
|
||||
|
||||
- name: install private ssh key
|
||||
action: copy src="{{ private }}/files/jenkins/ssh/jenkins_master" dest=/etc/jenkins/id_rsa mode=400 owner=jenkins group=jenkins
|
||||
tags:
|
||||
|
|
19
roles/jenkins/master/templates/slave-config.xml.j2
Normal file
19
roles/jenkins/master/templates/slave-config.xml.j2
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<slave>
|
||||
<name>{{ item.name }}</name>
|
||||
<description>{{ item.description }}</description>
|
||||
<remoteFS>'./jenkins-slave</remoteFS>
|
||||
<numExecutors>1</numExecutors>
|
||||
<mode>NORMAL</mode>
|
||||
<retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
|
||||
<launcher class="hudson.plugins.sshslaves.SSHLauncher" plugin="ssh-slaves@1.9">
|
||||
<host>{{ item.host }}</host>
|
||||
<port>22</port>
|
||||
<credentialsId>e8f7d993-acfb-42b0-a324-e4145361b9ea</credentialsId>
|
||||
<maxNumRetries>0</maxNumRetries>
|
||||
<retryWaitTime>0</retryWaitTime>
|
||||
</launcher>
|
||||
<label></label>
|
||||
<nodeProperties/>
|
||||
<userId>mizdebsk</userId>
|
||||
</slave>
|
Loading…
Add table
Add a link
Reference in a new issue