blob: 15850580fc886e4563bf3883aa09e1be47f88e9e [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun69645082017-06-01 17:13:01 +02003parameters:
4 _param:
Filip Pytloun69645082017-06-01 17:13:01 +02005 jenkins_master_host: ${_param:control_vip_address}
6 jenkins_master_port: 8081
7 jenkins_secret: "7c40abc1a7df2d26dd6b2e4421af17218df75a16fcbd5e3aa6017d9f47eaeabe"
8 jenkins_master_url: http://${_param:jenkins_master_host}:${_param:jenkins_master_port}
9 jenkins_slave_user: ${_param:jenkins_client_user}
10 jenkins_slave_password: ${_param:jenkins_client_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020011 jenkins_slave_extra_opts: ""
Filip Pytloun69645082017-06-01 17:13:01 +020012 docker:
13 client:
14 stack:
15 jenkins:
16 service:
17 slave01:
18 environment:
19 JENKINS_URL: ${_param:jenkins_master_url}
20 JENKINS_AGENT_NAME: slave01
21 JENKINS_UPDATE_SLAVE: 'true'
22 JENKINS_LOGIN: ${_param:jenkins_slave_user}
23 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020024 JAVA_OPTS: ${_param:jenkins_slave_extra_opts}
25 https_proxy: ${_param:docker_https_proxy}
26 http_proxy: ${_param:docker_http_proxy}
27 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun69645082017-06-01 17:13:01 +020028 deploy:
29 restart_policy:
30 condition: any
31 placement:
32 constraints:
33 - "node.hostname == ${_param:cluster_node01_name}"
34 image: ${_param:docker_image_jenkins_slave}
35 volumes:
36 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun69645082017-06-01 17:13:01 +020037 - /var/run/docker.sock:/var/run/docker.sock
38 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020039 - /var/lib/jenkins:/var/lib/jenkins
Filip Pytloun69645082017-06-01 17:13:01 +020040 slave02:
41 environment:
42 JENKINS_URL: ${_param:jenkins_master_url}
43 JENKINS_AGENT_NAME: slave02
44 JENKINS_UPDATE_SLAVE: 'true'
45 JENKINS_LOGIN: ${_param:jenkins_slave_user}
46 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020047 JAVA_OPTS: ${_param:jenkins_slave_extra_opts}
48 https_proxy: ${_param:docker_https_proxy}
49 http_proxy: ${_param:docker_http_proxy}
50 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun69645082017-06-01 17:13:01 +020051 deploy:
52 restart_policy:
53 condition: any
54 placement:
55 constraints:
56 - "node.hostname == ${_param:cluster_node02_name}"
57 image: ${_param:docker_image_jenkins_slave}
58 volumes:
59 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun69645082017-06-01 17:13:01 +020060 - /var/run/docker.sock:/var/run/docker.sock
61 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020062 - /var/lib/jenkins:/var/lib/jenkins
Filip Pytloun69645082017-06-01 17:13:01 +020063 slave03:
64 environment:
65 JENKINS_URL: ${_param:jenkins_master_url}
66 JENKINS_AGENT_NAME: slave03
67 JENKINS_UPDATE_SLAVE: 'true'
68 JENKINS_LOGIN: ${_param:jenkins_slave_user}
69 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020070 JAVA_OPTS: ${_param:jenkins_slave_extra_opts}
71 https_proxy: ${_param:docker_https_proxy}
72 http_proxy: ${_param:docker_http_proxy}
73 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun69645082017-06-01 17:13:01 +020074 deploy:
75 restart_policy:
76 condition: any
77 placement:
78 constraints:
79 - "node.hostname == ${_param:cluster_node03_name}"
80 image: ${_param:docker_image_jenkins_slave}
81 volumes:
82 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun69645082017-06-01 17:13:01 +020083 - /var/run/docker.sock:/var/run/docker.sock
84 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020085 - /var/lib/jenkins:/var/lib/jenkins