Skip to content

Commit

Permalink
Update configure_xcat.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Shubhangi-dell <[email protected]>
  • Loading branch information
Shubhangi-dell committed Jul 3, 2023
1 parent 7a15d11 commit d7b0f2a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions provision/roles/xcat_prepare_cp/tasks/configure_xcat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@
timezone="{{ timezone }}" forwarders="" nameservers=""
changed_when: true

- name: Make node object for control plane
ansible.builtin.command: mkdef -t node cp1 groups=control_plane mgt=ipmi cons=ipmi ip={{ admin_ip }} bmc={{ bmc_ip }} primarynic=mac mac={{ pxe_mac_address}}
changed_when: false
failed_when: false
when: network_interface_type == "lom"

- name: Make node object for control plane
ansible.builtin.command: mkdef -t node cp1 groups=control_plane mgt=ipmi cons=ipmi ip={{ admin_ip }} primarynic=mac mac={{ pxe_mac_address}}
changed_when: false
failed_when: false
when: network_interface_type == "dedicated"

- name: Update the site table
ansible.builtin.shell: >
chdef -t site excludenodes="cp1"
changed_when: true

- name: Configure DHCP routing settings
block:
- name: Configure site table
Expand Down

0 comments on commit d7b0f2a

Please sign in to comment.