Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - system.docker |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 3 | parameters: |
| 4 | _param: |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 5 | jenkins_master_host: ${_param:control_vip_address} |
| 6 | jenkins_master_port: 8081 |
| 7 | jenkins_secret: "7c40abc1a7df2d26dd6b2e4421af17218df75a16fcbd5e3aa6017d9f47eaeabe" |
| 8 | jenkins_master_url: http://${_param:jenkins_master_host}:${_param:jenkins_master_port} |
| 9 | jenkins_slave_user: ${_param:jenkins_client_user} |
| 10 | jenkins_slave_password: ${_param:jenkins_client_password} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 11 | jenkins_slave_extra_opts: "" |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 12 | docker: |
| 13 | client: |
| 14 | stack: |
| 15 | jenkins: |
| 16 | service: |
| 17 | slave01: |
| 18 | environment: |
| 19 | JENKINS_URL: ${_param:jenkins_master_url} |
| 20 | JENKINS_AGENT_NAME: slave01 |
| 21 | JENKINS_UPDATE_SLAVE: 'true' |
| 22 | JENKINS_LOGIN: ${_param:jenkins_slave_user} |
| 23 | JENKINS_PASSWORD: ${_param:jenkins_slave_password} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 24 | JAVA_OPTS: ${_param:jenkins_slave_extra_opts} |
| 25 | https_proxy: ${_param:docker_https_proxy} |
| 26 | http_proxy: ${_param:docker_http_proxy} |
| 27 | no_proxy: ${_param:docker_no_proxy} |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 28 | deploy: |
| 29 | restart_policy: |
| 30 | condition: any |
| 31 | placement: |
| 32 | constraints: |
| 33 | - "node.hostname == ${_param:cluster_node01_name}" |
| 34 | image: ${_param:docker_image_jenkins_slave} |
| 35 | volumes: |
| 36 | - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 37 | - /var/run/docker.sock:/var/run/docker.sock |
| 38 | - /usr/bin/docker:/usr/bin/docker:ro |
Filip Pytloun | 27718cc | 2017-06-30 12:59:27 +0200 | [diff] [blame] | 39 | - /var/lib/jenkins:/var/lib/jenkins |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 40 | slave02: |
| 41 | environment: |
| 42 | JENKINS_URL: ${_param:jenkins_master_url} |
| 43 | JENKINS_AGENT_NAME: slave02 |
| 44 | JENKINS_UPDATE_SLAVE: 'true' |
| 45 | JENKINS_LOGIN: ${_param:jenkins_slave_user} |
| 46 | JENKINS_PASSWORD: ${_param:jenkins_slave_password} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 47 | JAVA_OPTS: ${_param:jenkins_slave_extra_opts} |
| 48 | https_proxy: ${_param:docker_https_proxy} |
| 49 | http_proxy: ${_param:docker_http_proxy} |
| 50 | no_proxy: ${_param:docker_no_proxy} |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 51 | deploy: |
| 52 | restart_policy: |
| 53 | condition: any |
| 54 | placement: |
| 55 | constraints: |
| 56 | - "node.hostname == ${_param:cluster_node02_name}" |
| 57 | image: ${_param:docker_image_jenkins_slave} |
| 58 | volumes: |
| 59 | - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 60 | - /var/run/docker.sock:/var/run/docker.sock |
| 61 | - /usr/bin/docker:/usr/bin/docker:ro |
Filip Pytloun | 27718cc | 2017-06-30 12:59:27 +0200 | [diff] [blame] | 62 | - /var/lib/jenkins:/var/lib/jenkins |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 63 | slave03: |
| 64 | environment: |
| 65 | JENKINS_URL: ${_param:jenkins_master_url} |
| 66 | JENKINS_AGENT_NAME: slave03 |
| 67 | JENKINS_UPDATE_SLAVE: 'true' |
| 68 | JENKINS_LOGIN: ${_param:jenkins_slave_user} |
| 69 | JENKINS_PASSWORD: ${_param:jenkins_slave_password} |
Filip Pytloun | e7d4f86 | 2017-08-04 13:11:51 +0200 | [diff] [blame] | 70 | JAVA_OPTS: ${_param:jenkins_slave_extra_opts} |
| 71 | https_proxy: ${_param:docker_https_proxy} |
| 72 | http_proxy: ${_param:docker_http_proxy} |
| 73 | no_proxy: ${_param:docker_no_proxy} |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 74 | deploy: |
| 75 | restart_policy: |
| 76 | condition: any |
| 77 | placement: |
| 78 | constraints: |
| 79 | - "node.hostname == ${_param:cluster_node03_name}" |
| 80 | image: ${_param:docker_image_jenkins_slave} |
| 81 | volumes: |
| 82 | - /etc/ssl/certs/java/cacerts:/etc/ssl/certs/java/cacerts:ro |
Filip Pytloun | 6964508 | 2017-06-01 17:13:01 +0200 | [diff] [blame] | 83 | - /var/run/docker.sock:/var/run/docker.sock |
| 84 | - /usr/bin/docker:/usr/bin/docker:ro |
Filip Pytloun | 27718cc | 2017-06-30 12:59:27 +0200 | [diff] [blame] | 85 | - /var/lib/jenkins:/var/lib/jenkins |