Skip to content

Commit

Permalink
Ansible playbook to setup Dell R650 servers
Browse files Browse the repository at this point in the history
  • Loading branch information
bmanzari committed Jan 13, 2024
1 parent 169cdc9 commit de0a3b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
15 changes: 8 additions & 7 deletions servers-management/dell/ansible/dell_setup_R650.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
gather_facts: False
vars_files:
- idrac_vars.yaml
environment: "{{proxy_env}}"

tasks:

Expand Down Expand Up @@ -46,28 +47,28 @@
tags:
- pxeconfig_enable_devices

- name: Configure PXE Device 1 to boot from Integrated Nic 1 Port 2 Partition 1
- name: Configure PXE Device 1 to boot from Embedded Nic 1 Port 1 Partition 1
dellemc.openmanage.idrac_bios:
idrac_ip: "{{ item }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
validate_certs: False
attributes:
PxeDev1Interface: "{{ nic_baremetal }}" # ref: https://issues.redhat.com/browse/OCPQE-14115
PxeDev1Interface: "{{ nic_baremetal }}" # ref: https://issues.redhat.com/browse/OCPQE-18907
PxeDev1Protocol: "IPv4"
PxeDev1VlanEnDis: "Disabled"
with_items: "{{ groups['idrac'] }}"
tags:
- pxeconfig_dev1_baremetal

- name: Configure PXE Device 2 to PXE boot from Integrated Nic 1 Port 3 Partition 1
- name: Configure PXE Device 2 to PXE boot from Embedded Nic 2 Port 1 Partition 1
dellemc.openmanage.idrac_bios:
idrac_ip: "{{ item }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
validate_certs: False
attributes:
PxeDev2Interface: "{{ nic_provisioning }}" # ref: https://issues.redhat.com/browse/OCPQE-14115
PxeDev2Interface: "{{ nic_provisioning }}" # ref: https://issues.redhat.com/browse/OCPQE-18907
PxeDev2Protocol: "IPv4"
PxeDev2VlanEnDis: "Disabled"
with_items: "{{ groups['idrac'] }}"
Expand All @@ -76,7 +77,7 @@



- name: Configure Bios Generic Attributes # ref: https://issues.redhat.com/browse/OCPQE-14115
- name: Configure Bios Generic Attributes # ref: https://issues.redhat.com/browse/OCPQE-18907
# Boot mode: UEFI
# TPM off
# Performance hardware profile
Expand Down Expand Up @@ -107,10 +108,10 @@
validate_certs: False
boot_sources:
- Name: "NIC.PxeDevice.1-1"
Enabled: true
Enabled: false
Index: 0
- Name: "NIC.PxeDevice.2-1"
Enabled: true
Enabled: false
Index: 1
with_items: "{{ groups['idrac'] }}"
tags:
Expand Down
9 changes: 6 additions & 3 deletions servers-management/dell/ansible/inventory_R650.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
idrac:
hosts:
192.168.70.120:
192.168.70.105:
# 192.168.70.105:
192.168.70.107:
192.168.70.117:
192.168.70.116:
Expand All @@ -14,8 +14,11 @@ idrac:
192.168.70.128:
192.168.70.82:
192.168.70.127:
192.168.70.92:
# 192.168.70.92:
192.168.70.129:
192.168.70.83:
# 192.168.70.83:
192.168.70.94:
192.168.70.93:
vars:
nic_baremetal: "NIC.Embedded.1-1-1"
nic_provisioning: "NIC.Embedded.2-1-1"

0 comments on commit de0a3b7

Please sign in to comment.