blob: f4e16a2254445ea6c1b1e60d1fa5c73bf294edff [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}"
Ivan Berezovskiydf8392a2019-07-18 18:20:55 +040020 GIT_SSL_CAINFO: /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem
Ivan Berezovskiy9f4ef9e2019-06-10 13:57:16 +040021 deploy:
22 restart_policy:
23 condition: any
24 placement:
25 constraints:
26 - "node.hostname == ${_param:jenkins_slave01_node_name}"
27 image: ${_param:docker_image_jenkins_ssh_slave}
28 volumes:
29 - /etc/ssl/certs/:/etc/ssl/certs/:ro
Ivan Berezovskiydf8392a2019-07-18 18:20:55 +040030 - /etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:/etc/ssl/certs/ca-${_param:salt_minion_ca_authority}.pem:ro
Ivan Berezovskiy9f4ef9e2019-06-10 13:57:16 +040031 - /dev/urandom:/dev/random:ro
32 - /var/run/docker.sock:/var/run/docker.sock
33 - /usr/bin/docker:/usr/bin/docker:ro
34 - /var/lib/jenkins:/var/lib/jenkins
35 jenkins:
36 client:
37 node:
38 slave01:
39 launcher:
40 type: ssh
41 host: jenkins_slave01
42 port: 22
43 username: jenkins
44 credentials: ssh_slave
45 credential:
46 ssh_slave:
47 username: jenkins
48 key: ${_param:jenkins_admin_private_key}
49