blob: dbdaf1d2eb922ac10e85f7bb585319055c708c57 [file] [log] [blame]
Ivan Berezovskiy9f4ef9e2019-06-10 13:57:16 +04001classes:
2- system.docker
3parameters:
4 _param:
5 jenkins_slave01_node_name: ${_param:cluster_node01_name}
6 docker:
7 client:
8 enabled: true
9 images:
10 - ${_param:docker_image_jenkins_ssh_slave}
11 stack:
12 jenkins:
13 service:
14 slave01:
15 environment:
16 JENKINS_SLAVE_SSH_PUBKEY: ${_param:jenkins_admin_public_key}
17 https_proxy: ${_param:docker_https_proxy}
18 http_proxy: ${_param:docker_http_proxy}
19 no_proxy: "jenkins_master,${_param:docker_no_proxy}"
20 deploy:
21 restart_policy:
22 condition: any
23 placement:
24 constraints:
25 - "node.hostname == ${_param:jenkins_slave01_node_name}"
26 image: ${_param:docker_image_jenkins_ssh_slave}
27 volumes:
28 - /etc/ssl/certs/:/etc/ssl/certs/:ro
29 - /dev/urandom:/dev/random:ro
30 - /var/run/docker.sock:/var/run/docker.sock
31 - /usr/bin/docker:/usr/bin/docker:ro
32 - /var/lib/jenkins:/var/lib/jenkins
33 jenkins:
34 client:
35 node:
36 slave01:
37 launcher:
38 type: ssh
39 host: jenkins_slave01
40 port: 22
41 username: jenkins
42 credentials: ssh_slave
43 credential:
44 ssh_slave:
45 username: jenkins
46 key: ${_param:jenkins_admin_private_key}
47