-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_module_cluster_management.yml
49 lines (47 loc) · 2.04 KB
/
test_module_cluster_management.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2024 Cisco Systems, Inc. and its affiliates
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
---
- name: Testing playbook to verify cisco.catalystwan.cluster
hosts: localhost
gather_facts: false
vars_files:
- configuration_file_dev_vars.yml
tasks:
- name: "Edit cluster IP address for vManage {{ (vmanage_instances | first).hostname }}"
cisco.catalystwan.cluster_management:
wait_until_configured_seconds: 300
vmanage_id: "0"
system_ip: "{{ (vmanage_instances | first).system_ip }}"
cluster_ip: "{{ (vmanage_instances | first).cluster_private_ip }}"
username: "{{ (vmanage_instances | first).admin_username }}"
password: "{{ (vmanage_instances | first).admin_password }}"
persona: "{{ (vmanage_instances | first).persona }}"
services:
sd-avc:
server: false
manager_authentication:
url: "{{ (vmanage_instances | first).mgmt_public_ip }}"
username: "{{ (vmanage_instances | first).admin_username }}"
password: "{{ (vmanage_instances | first).admin_password }}"
- name: Add remaining instances to cluster
cisco.catalystwan.cluster_management:
wait_until_configured_seconds: 1800
system_ip: "{{ vmanage.system_ip }}"
cluster_ip: "{{ vmanage.cluster_private_ip }}"
username: "{{ vmanage.admin_username }}"
password: "{{ vmanage.admin_password }}"
gen_csr: false
persona: "{{ vmanage.persona }}"
services:
sd-avc:
server: false
manager_authentication:
url: "{{ (vmanage_instances | first).mgmt_public_ip }}"
username: "{{ (vmanage_instances | first).admin_username }}"
password: "{{ (vmanage_instances | first).admin_password }}"
loop: "{{ vmanage_instances[1:] }}"
loop_control:
loop_var: vmanage
when: vmanage.cluster_private_ip is defined
retries: 180
delay: 10