summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rancher/molecule/default/converge.yml
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-08 16:41:16 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-22 08:49:23 +0200
commitd7927502fed8ad19ef5d27f688e0a1cc17b60a4b (patch)
treec07e349d9c8cb856cb098c2ea41a80fa6d5e6cec /ansible/roles/rancher/molecule/default/converge.yml
parent481040facee44e617cc5a238b417a18dac7de262 (diff)
[MOLECULE 3.3.0] Update converge playbook file names
In 3.x.x version family of Molecule the 'playbook.yml' file for 'converge' action has changed to 'converge.yml'. Ref.: https://github.com/ansible-community/molecule/issues/2560 Change-Id: I8710ebd5710237be138f2aff8943d6c949058dbd Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/rancher/molecule/default/converge.yml')
-rw-r--r--ansible/roles/rancher/molecule/default/converge.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/ansible/roles/rancher/molecule/default/converge.yml b/ansible/roles/rancher/molecule/default/converge.yml
new file mode 100644
index 00000000..afdbb4af
--- /dev/null
+++ b/ansible/roles/rancher/molecule/default/converge.yml
@@ -0,0 +1,28 @@
+---
+- name: Converge rancher master
+ hosts: infrastructure
+ roles:
+ - prepare-common
+ - role: rancher
+ vars:
+ mode: server
+
+- name: Converge rancher agent
+ hosts: kubernetes
+ roles:
+ - prepare-common
+ - role: rancher
+ vars:
+ mode: agent
+
+- name: Wait for Kubernetes environment to be healthy
+ hosts: infrastructure
+ roles:
+ - role: rancher
+ vars:
+ mode: health
+ rancher_server_url: "http://{{ cluster_ip }}:8080"
+ # Do not get rancher cluster healthy in this env (to be checked),
+ # but it's enough in molecule test to verify we get this unhealthy response
+ rancher_cluster_health_state: unhealthy
+ rancher_cluster_health_check_retries: 40