1111 collections :
1212 - community.libvirt
1313 - kubernetes.core
14-
14+
1515 # --- Variable Definitions ---
1616 vars :
1717 # Default to non-interactive mode to prevent prompts during automated runs
1818 # Set interactive_mode: true to enable prompts for manual execution
1919 interactive_mode : false
20-
20+
2121 # Default topology is fencing (can be overridden to 'arbiter' if needed, not supported at the moment)
2222 # This default ensures no prompt is triggered when interactive_mode is false
2323 topology : fencing
8585 - vars/main.yml
8686
8787 tasks :
88- # Setup proxy access as a separate step after cluster deployment
89- - name : Setup proxy access
90- include_role :
91- name : proxy-setup
92- vars :
93- kubeconfig_path : " {{ ansible_user_dir }}/.kcli/clusters/{{ test_cluster_name }}/auth/kubeconfig"
94- kubeadmin_password_path : " {{ ansible_user_dir }}/.kcli/clusters/{{ test_cluster_name }}/auth/kubeadmin-password"
95-
96- - name : Update inventory with cluster VMs
97- include_tasks : roles/common/tasks/update-cluster-inventory.yml
98-
99- # Configure stonith fencing after cluster installation
100- - name : Configure Redfish BMC simulation for fencing topology
101- shell : ansible-playbook kcli-redfish.yml -i {{ inventory_file | default('inventory.ini') }}
102- args :
103- chdir : " {{ playbook_dir }}"
104- delegate_to : localhost
105- run_once : true
106- when : topology == "fencing"
107-
108- - name : " Final verification message"
109- ansible.builtin.debug :
110- msg : |
111- Installation tasks have completed for {{ topology }} topology.
112-
113- Next steps:
114- 1. Source the proxy environment from anywhere:
115- source {{ playbook_dir }}/proxy.env
116- (or from openshift-clusters directory: source proxy.env)
117- 2. Verify cluster access: oc get nodes
118- 3. Access the cluster console if needed
88+ # Setup proxy access as a separate step after cluster deployment
89+ - name : Setup proxy access
90+ include_role :
91+ name : proxy-setup
92+ vars :
93+ kubeconfig_path : " {{ ansible_user_dir }}/.kcli/clusters/{{ test_cluster_name }}/auth/kubeconfig"
94+ kubeadmin_password_path : " {{ ansible_user_dir }}/.kcli/clusters/{{ test_cluster_name }}/auth/kubeadmin-password"
95+
96+ - name : Update inventory with cluster VMs
97+ include_tasks : roles/common/tasks/update-cluster-inventory.yml
98+
99+ # Configure stonith fencing after cluster installation
100+ - name : Configure Redfish BMC simulation for fencing topology
101+ shell : ansible-playbook kcli-redfish.yml -i {{ inventory_file | default('inventory.ini') }}
102+ args :
103+ chdir : " {{ playbook_dir }}"
104+ delegate_to : localhost
105+ run_once : true
106+ when : topology == "fencing"
107+
108+ - name : " Final verification message"
109+ ansible.builtin.debug :
110+ msg : |-
111+ Installation tasks have completed for {{ topology }} topology.
112+
113+ Next steps:
114+ 1. Source the proxy environment from anywhere:
115+ source {{ playbook_dir }}/proxy.env
116+ (or from openshift-clusters directory: source proxy.env)
117+ 2. Verify cluster access: oc get nodes
118+ 3. Access the cluster console if needed
0 commit comments