blob: 52015ec067bf0126e1419d092c0c898cd6f109b7 [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
34 slave02:
35 environment:
36 JENKINS_URL: ${_param:jenkins_master_url}
37 JENKINS_AGENT_NAME: slave02
38 JENKINS_UPDATE_SLAVE: 'true'
39 JENKINS_LOGIN: ${_param:jenkins_slave_user}
40 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
41 deploy:
42 restart_policy:
43 condition: any
44 placement:
45 constraints:
46 - "node.hostname == ${_param:cluster_node02_name}"
47 image: ${_param:docker_image_jenkins_slave}
48 volumes:
49 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
50 - /etc/aptly-publisher.yaml:/etc/aptly-publisher.yaml:ro
51 - /var/run/docker.sock:/var/run/docker.sock
52 - /usr/bin/docker:/usr/bin/docker:ro
53 slave03:
54 environment:
55 JENKINS_URL: ${_param:jenkins_master_url}
56 JENKINS_AGENT_NAME: slave03
57 JENKINS_UPDATE_SLAVE: 'true'
58 JENKINS_LOGIN: ${_param:jenkins_slave_user}
59 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
60 deploy:
61 restart_policy:
62 condition: any
63 placement:
64 constraints:
65 - "node.hostname == ${_param:cluster_node03_name}"
66 image: ${_param:docker_image_jenkins_slave}
67 volumes:
68 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
69 - /etc/aptly-publisher.yaml:/etc/aptly-publisher.yaml:ro
70 - /var/run/docker.sock:/var/run/docker.sock
71 - /usr/bin/docker:/usr/bin/docker:ro