blob: 3606bad20d69d597a14bb3849a4ea8176da75c24 [file] [log] [blame]
Ivan Berezovskiy7012f6e2019-06-10 13:57:16 +04001classes:
2- system.docker.swarm.stack.jenkins.jnlp_slave_single
3parameters:
4 _param:
5 jenkins_slave02_node_name: ${_param:cluster_node02_name}
6 jenkins_slave03_node_name: ${_param:cluster_node03_name}
7 docker:
8 client:
9 stack:
10 jenkins:
11 service:
12 slave02:
13 environment:
14 JENKINS_URL: ${_param:jenkins_master_url}
15 JENKINS_AGENT_NAME: slave02
16 JENKINS_UPDATE_SLAVE: 'true'
17 JENKINS_LOGIN: ${_param:jenkins_client_user}
18 JENKINS_PASSWORD: ${_param:jenkins_client_password}
19 JAVA_OPTS: "-Dhttp.proxyHost=${_param:docker_http_proxy} -Dhttp.nonProxyHosts=|jenkins_master ${_param:jenkins_slave_extra_opts}"
20 https_proxy: ${_param:docker_https_proxy}
21 http_proxy: ${_param:docker_http_proxy}
22 no_proxy: "jenkins_master,${_param:docker_no_proxy}"
Ivan Berezovskiy8591ade2019-07-18 18:20:55 +040023 GIT_SSL_CAINFO: /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem
Ivan Berezovskiy7012f6e2019-06-10 13:57:16 +040024 deploy:
25 restart_policy:
26 condition: any
27 placement:
28 constraints:
29 - "node.hostname == ${_param:jenkins_slave02_node_name}"
30 image: ${_param:docker_image_jenkins_jnlp_slave}
31 volumes:
32 - /etc/ssl/certs/:/etc/ssl/certs/:ro
Ivan Berezovskiy8591ade2019-07-18 18:20:55 +040033 - /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:/etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:ro
Ivan Berezovskiy7012f6e2019-06-10 13:57:16 +040034 - /dev/urandom:/dev/random:ro
35 - /var/run/docker.sock:/var/run/docker.sock
36 - /usr/bin/docker:/usr/bin/docker:ro
37 - /var/lib/jenkins:/var/lib/jenkins
38 slave03:
39 environment:
40 JENKINS_URL: ${_param:jenkins_master_url}
41 JENKINS_AGENT_NAME: slave03
42 JENKINS_UPDATE_SLAVE: 'true'
43 JENKINS_LOGIN: ${_param:jenkins_client_user}
44 JENKINS_PASSWORD: ${_param:jenkins_client_password}
45 JAVA_OPTS: "-Dhttp.proxyHost=${_param:docker_http_proxy} -Dhttp.nonProxyHosts=|jenkins_master ${_param:jenkins_slave_extra_opts}"
46 https_proxy: ${_param:docker_https_proxy}
47 http_proxy: ${_param:docker_http_proxy}
48 no_proxy: "jenkins_master,${_param:docker_no_proxy}"
Ivan Berezovskiy8591ade2019-07-18 18:20:55 +040049 GIT_SSL_CAINFO: /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem
Ivan Berezovskiy7012f6e2019-06-10 13:57:16 +040050 deploy:
51 restart_policy:
52 condition: any
53 placement:
54 constraints:
55 - "node.hostname == ${_param:jenkins_slave03_node_name}"
56 image: ${_param:docker_image_jenkins_jnlp_slave}
57 volumes:
58 - /etc/ssl/certs/:/etc/ssl/certs/:ro
Ivan Berezovskiy8591ade2019-07-18 18:20:55 +040059 - /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:/etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:ro
Ivan Berezovskiy7012f6e2019-06-10 13:57:16 +040060 - /dev/urandom:/dev/random:ro
61 - /var/run/docker.sock:/var/run/docker.sock
62 - /usr/bin/docker:/usr/bin/docker:ro
63 - /var/lib/jenkins:/var/lib/jenkins