Pavel Cizinsky | d8d8a5a | 2018-11-06 14:07:40 +0100 | [diff] [blame] | 1 | classes: |
| 2 | - system.docker |
| 3 | - system.docker.swarm.stack.jenkins.slave_base |
| 4 | parameters: |
| 5 | _param: |
| 6 | jenkins_slave01_node_name: ${_param:cluster_node01_name} |
| 7 | docker: |
| 8 | client: |
| 9 | stack: |
| 10 | jenkins: |
| 11 | service: |
| 12 | slave01: |
| 13 | environment: |
| 14 | JENKINS_URL: ${_param:jenkins_master_url} |
| 15 | JENKINS_AGENT_NAME: slave01 |
| 16 | JENKINS_UPDATE_SLAVE: 'true' |
| 17 | JENKINS_LOGIN: ${_param:jenkins_slave_user} |
| 18 | JENKINS_PASSWORD: ${_param:jenkins_slave_password} |
| 19 | JAVA_OPTS: ${_param:jenkins_slave_extra_opts} |
| 20 | https_proxy: ${_param:docker_https_proxy} |
| 21 | http_proxy: ${_param:docker_http_proxy} |
| 22 | no_proxy: ${_param:docker_no_proxy} |
| 23 | deploy: |
| 24 | restart_policy: |
| 25 | condition: any |
| 26 | placement: |
| 27 | constraints: |
| 28 | - "node.hostname == ${_param:jenkins_slave01_node_name}" |
| 29 | image: ${_param:docker_image_jenkins_slave} |
| 30 | volumes: |
| 31 | - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts: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 |