blob: fc281b777762046d6e050de1cce7da93736ec785 [file] [log] [blame]
Filip Pytloun69645082017-06-01 17:13:01 +02001parameters:
2 _param:
3 docker_image_jenkins_slave: tcpcloud/jnlp-slave
4 jenkins_master_host: ${_param:control_vip_address}
5 jenkins_master_port: 8081
6 jenkins_secret: "7c40abc1a7df2d26dd6b2e4421af17218df75a16fcbd5e3aa6017d9f47eaeabe"
7 jenkins_master_url: http://${_param:jenkins_master_host}:${_param:jenkins_master_port}
8 jenkins_slave_user: ${_param:jenkins_client_user}
9 jenkins_slave_password: ${_param:jenkins_client_password}
10 docker:
11 client:
12 stack:
13 jenkins:
14 service:
15 slave01:
16 environment:
17 JENKINS_URL: ${_param:jenkins_master_url}
18 JENKINS_AGENT_NAME: slave01
19 JENKINS_UPDATE_SLAVE: 'true'
20 JENKINS_LOGIN: ${_param:jenkins_slave_user}
21 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
22 deploy:
23 restart_policy:
24 condition: any
25 placement:
26 constraints:
27 - "node.hostname == ${_param:cluster_node01_name}"
28 image: ${_param:docker_image_jenkins_slave}
29 volumes:
30 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
31 - /etc/aptly-publisher.yaml:/etc/aptly-publisher.yaml:ro
32 - /var/run/docker.sock:/var/run/docker.sock
33 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020034 - /var/lib/jenkins:/var/lib/jenkins
Filip Pytloun69645082017-06-01 17:13:01 +020035 slave02:
36 environment:
37 JENKINS_URL: ${_param:jenkins_master_url}
38 JENKINS_AGENT_NAME: slave02
39 JENKINS_UPDATE_SLAVE: 'true'
40 JENKINS_LOGIN: ${_param:jenkins_slave_user}
41 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
42 deploy:
43 restart_policy:
44 condition: any
45 placement:
46 constraints:
47 - "node.hostname == ${_param:cluster_node02_name}"
48 image: ${_param:docker_image_jenkins_slave}
49 volumes:
50 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
51 - /etc/aptly-publisher.yaml:/etc/aptly-publisher.yaml:ro
52 - /var/run/docker.sock:/var/run/docker.sock
53 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020054 - /var/lib/jenkins:/var/lib/jenkins
Filip Pytloun69645082017-06-01 17:13:01 +020055 slave03:
56 environment:
57 JENKINS_URL: ${_param:jenkins_master_url}
58 JENKINS_AGENT_NAME: slave03
59 JENKINS_UPDATE_SLAVE: 'true'
60 JENKINS_LOGIN: ${_param:jenkins_slave_user}
61 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
62 deploy:
63 restart_policy:
64 condition: any
65 placement:
66 constraints:
67 - "node.hostname == ${_param:cluster_node03_name}"
68 image: ${_param:docker_image_jenkins_slave}
69 volumes:
70 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
71 - /etc/aptly-publisher.yaml:/etc/aptly-publisher.yaml:ro
72 - /var/run/docker.sock:/var/run/docker.sock
73 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020074 - /var/lib/jenkins:/var/lib/jenkins