blob: 2959e4de2442bdc9956a615d10a6fe50362cbcfa [file] [log] [blame]
Ivan Berezovskiy7012f6e2019-06-10 13:57:16 +04001classes:
2- system.docker.swarm.stack.jenkins.ssh_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_SLAVE_SSH_PUBKEY: ${_param:jenkins_admin_public_key}
15 https_proxy: ${_param:docker_https_proxy}
16 http_proxy: ${_param:docker_http_proxy}
17 no_proxy: "jenkins_master,${_param:docker_no_proxy}"
18 deploy:
19 restart_policy:
20 condition: any
21 placement:
22 constraints:
23 - "node.hostname == ${_param:jenkins_slave02_node_name}"
24 image: ${_param:docker_image_jenkins_ssh_slave}
25 volumes:
26 - /etc/ssl/certs/:/etc/ssl/certs/:ro
27 - /dev/urandom:/dev/random:ro
28 - /var/run/docker.sock:/var/run/docker.sock
29 - /usr/bin/docker:/usr/bin/docker:ro
30 - /var/lib/jenkins:/var/lib/jenkins
31 slave03:
32 environment:
33 JENKINS_SLAVE_SSH_PUBKEY: ${_param:jenkins_admin_public_key}
34 https_proxy: ${_param:docker_https_proxy}
35 http_proxy: ${_param:docker_http_proxy}
36 no_proxy: "jenkins_master,${_param:docker_no_proxy}"
37 deploy:
38 restart_policy:
39 condition: any
40 placement:
41 constraints:
42 - "node.hostname == ${_param:jenkins_slave03_node_name}"
43 image: ${_param:docker_image_jenkins_ssh_slave}
44 volumes:
45 - /etc/ssl/certs/:/etc/ssl/certs/:ro
46 - /dev/urandom:/dev/random:ro
47 - /var/run/docker.sock:/var/run/docker.sock
48 - /usr/bin/docker:/usr/bin/docker:ro
49 - /var/lib/jenkins:/var/lib/jenkins
50 jenkins:
51 client:
52 node:
53 slave02:
54 launcher:
55 type: ssh
56 host: jenkins_slave02
57 port: 22
58 username: jenkins
59 credentials: ssh_slave
60 slave03:
61 launcher:
62 type: ssh
63 host: jenkins_slave03
64 port: 22
65 username: jenkins
66 credentials: ssh_slave