Samuli Silvius | bb3bef8 | 2019-04-04 08:22:08 +0300 | [diff] [blame] | 1 | --- |
| 2 | - name: Converge rancher master |
| 3 | hosts: infrastructure |
| 4 | roles: |
Michal Zegan | a83ae84 | 2019-05-22 17:53:00 +0200 | [diff] [blame] | 5 | - prepare-common |
Samuli Silvius | bb3bef8 | 2019-04-04 08:22:08 +0300 | [diff] [blame] | 6 | - role: rancher |
| 7 | vars: |
| 8 | mode: server |
| 9 | rancher_server_url: "http://{{ cluster_ip }}:8080" |
| 10 | |
| 11 | - name: Converge rancher agent |
| 12 | hosts: kubernetes |
| 13 | roles: |
| 14 | - role: rancher |
| 15 | vars: |
| 16 | mode: agent |
| 17 | |
| 18 | - name: Wait for Kubernetes environment to be healthy |
| 19 | hosts: infrastructure |
| 20 | roles: |
| 21 | - role: rancher |
| 22 | vars: |
| 23 | mode: health |
| 24 | rancher_server_url: "http://{{ cluster_ip }}:8080" |
| 25 | # Do not get rancher cluster healthy in this env (to be checked), |
| 26 | # but it's enough in molecule test to verify we get this unhealthy response |
| 27 | rancher_cluster_health_state: unhealthy |
| 28 | rancher_cluster_health_check_retries: 40 |