Skip to content

Commit 486a2e0

Browse files
committed
add debug var for starting oci cluster
1 parent 1bc7964 commit 486a2e0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ocne2/default_vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ocne_type: libvirt
2323
install_ocne_rpm: false
2424
create_ocne_cluster: false
2525
create_ocne_oci_cluster: false
26+
debug_oci_cluster: false
2627
ocne_cluster_node_options: ""
2728
ocne_cluster_name: "ocne"
2829
num_cp_nodes: 3

ocne2/deploy_ocne_oci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,14 @@
303303
poll: 10
304304
register: cluster_sleeper
305305
changed_when: cluster_sleeper.rc == 0
306+
when: not debug_oci_cluster
306307

307308
- name: Print cluster provision output
308309
ansible.builtin.debug:
309310
var: cluster_sleeper
310-
when: debug_enabled
311+
when:
312+
- debug_enabled
313+
- not debug_oci_cluster
311314

312315
# - name: Check on cluster provisioning
313316
# ansible.builtin.async_status:
@@ -323,3 +326,4 @@
323326
line: "export KUBECONFIG=$HOME/.kube/kubeconfig.{{ ocne_cluster_name | default('ocne') }}.local"
324327
become: true
325328
become_user: "{{ username }}"
329+
when: not debug_oci_cluster

0 commit comments

Comments
 (0)