Skip to content

Commit

Permalink
Fix nodename undefine issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Zheng Xiao Mei <[email protected]>
  • Loading branch information
zhengxiaomei123 authored and bjhuangr committed Jun 20, 2024
1 parent 71707e9 commit 06334f2
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,32 @@
ansible.builtin.script: tools/generate-bootstrap-ignitionshim.py {{ image_url.stdout_lines[0] }} {{ glance_token.stdout }} {{ infra_id.stdout_lines[0] }} {{ bootstrap_name_prefix }}
args:
executable: python3
when:
- bootstrap_name_prefix is defined

- name: Generate bootstrap ignition shim
ansible.builtin.script: tools/generate-bootstrap-ignitionshim.py {{ image_url.stdout_lines[0] }} {{ glance_token.stdout }} {{ infra_id.stdout_lines[0] }}
args:
executable: python3
when:
- bootstrap_name_prefix is not defined

- name: Generate master ignition
ansible.builtin.script: tools/generate-master-ignition.sh {{ infra_id.stdout_lines[0] }} {{ os_control_nodes_number }} {{ master_name_prefix }}
when:
- master_name_prefix is defined

- name: Generate master ignition
ansible.builtin.script: tools/generate-master-ignition.sh {{ infra_id.stdout_lines[0] }} {{ os_control_nodes_number }}
when:
- master_name_prefix is not defined

- name: Generate worker ignition
ansible.builtin.script: tools/generate-worker-ignition.sh {{ infra_id.stdout_lines[0] }} {{ os_compute_nodes_number }} {{ worker_name_prefix }}
when:
- worker_name_prefix is defined

- name: Generate worker ignition
ansible.builtin.script: tools/generate-worker-ignition.sh {{ infra_id.stdout_lines[0] }} {{ os_compute_nodes_number }}
when:
- worker_name_prefix is not defined

0 comments on commit 06334f2

Please sign in to comment.