blob: f3cd90c885aa825de31fa32c08e74e96cd978b75 [file] [log] [blame]
Filip Pytloune7d4f862017-08-04 13:11:51 +02001classes:
2- system.docker
Filip Pytloun69645082017-06-01 17:13:01 +02003parameters:
4 _param:
Jakub Josef86b07822018-04-10 14:45:52 +02005 docker_image_jenkins_slave: mirantis/jnlp-slave
Filip Pytloun69645082017-06-01 17:13:01 +02006 jenkins_master_host: ${_param:control_vip_address}
7 jenkins_master_port: 8081
8 jenkins_secret: "7c40abc1a7df2d26dd6b2e4421af17218df75a16fcbd5e3aa6017d9f47eaeabe"
9 jenkins_master_url: http://${_param:jenkins_master_host}:${_param:jenkins_master_port}
10 jenkins_slave_user: ${_param:jenkins_client_user}
11 jenkins_slave_password: ${_param:jenkins_client_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020012 jenkins_slave_extra_opts: ""
Filip Pytloun69645082017-06-01 17:13:01 +020013 docker:
14 client:
15 stack:
16 jenkins:
17 service:
18 slave01:
19 environment:
20 JENKINS_URL: ${_param:jenkins_master_url}
21 JENKINS_AGENT_NAME: slave01
22 JENKINS_UPDATE_SLAVE: 'true'
23 JENKINS_LOGIN: ${_param:jenkins_slave_user}
24 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020025 JAVA_OPTS: ${_param:jenkins_slave_extra_opts}
26 https_proxy: ${_param:docker_https_proxy}
27 http_proxy: ${_param:docker_http_proxy}
28 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun69645082017-06-01 17:13:01 +020029 deploy:
30 restart_policy:
31 condition: any
32 placement:
33 constraints:
34 - "node.hostname == ${_param:cluster_node01_name}"
35 image: ${_param:docker_image_jenkins_slave}
36 volumes:
37 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun69645082017-06-01 17:13:01 +020038 - /var/run/docker.sock:/var/run/docker.sock
39 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020040 - /var/lib/jenkins:/var/lib/jenkins
Filip Pytloun69645082017-06-01 17:13:01 +020041 slave02:
42 environment:
43 JENKINS_URL: ${_param:jenkins_master_url}
44 JENKINS_AGENT_NAME: slave02
45 JENKINS_UPDATE_SLAVE: 'true'
46 JENKINS_LOGIN: ${_param:jenkins_slave_user}
47 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020048 JAVA_OPTS: ${_param:jenkins_slave_extra_opts}
49 https_proxy: ${_param:docker_https_proxy}
50 http_proxy: ${_param:docker_http_proxy}
51 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun69645082017-06-01 17:13:01 +020052 deploy:
53 restart_policy:
54 condition: any
55 placement:
56 constraints:
57 - "node.hostname == ${_param:cluster_node02_name}"
58 image: ${_param:docker_image_jenkins_slave}
59 volumes:
60 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun69645082017-06-01 17:13:01 +020061 - /var/run/docker.sock:/var/run/docker.sock
62 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020063 - /var/lib/jenkins:/var/lib/jenkins
Filip Pytloun69645082017-06-01 17:13:01 +020064 slave03:
65 environment:
66 JENKINS_URL: ${_param:jenkins_master_url}
67 JENKINS_AGENT_NAME: slave03
68 JENKINS_UPDATE_SLAVE: 'true'
69 JENKINS_LOGIN: ${_param:jenkins_slave_user}
70 JENKINS_PASSWORD: ${_param:jenkins_slave_password}
Filip Pytloune7d4f862017-08-04 13:11:51 +020071 JAVA_OPTS: ${_param:jenkins_slave_extra_opts}
72 https_proxy: ${_param:docker_https_proxy}
73 http_proxy: ${_param:docker_http_proxy}
74 no_proxy: ${_param:docker_no_proxy}
Filip Pytloun69645082017-06-01 17:13:01 +020075 deploy:
76 restart_policy:
77 condition: any
78 placement:
79 constraints:
80 - "node.hostname == ${_param:cluster_node03_name}"
81 image: ${_param:docker_image_jenkins_slave}
82 volumes:
83 - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro
Filip Pytloun69645082017-06-01 17:13:01 +020084 - /var/run/docker.sock:/var/run/docker.sock
85 - /usr/bin/docker:/usr/bin/docker:ro
Filip Pytloun27718cc2017-06-30 12:59:27 +020086 - /var/lib/jenkins:/var/lib/jenkins