Skip to content

Commit

Permalink
Add BIOS boot string verification for 620.
Browse files Browse the repository at this point in the history
This adds the same bios interface boot string verification
that we have for other Dell types via racadm.

This was excluded from the original batch but adding them now.

Fixes: #174

Change-Id: If18a64494b1e0eb6d50d0a52ce46e3a95c91b521
  • Loading branch information
sadsfae committed Apr 20, 2018
1 parent 4ba5e02 commit bf4525c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 15 additions & 2 deletions ansible/racadm-setup-boot-r620-director.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
vars:
untouchables: mgmt-foreman.example.com
hosts: all:!{{untouchables}}
tasks:
vars_files:
- idrac_interfaces.yml
tasks:

# try to gracefully shutdown target server
- name: shutdown underlying OS
Expand Down Expand Up @@ -62,7 +64,7 @@

# setup the new boot order to ensure 1st nic is before disk
- name: racadm setup boot
raw: racadm set BIOS.BiosBootSettings.BootSeq NIC.Slot.2-4,HardDisk.List.1-1,NIC.Slot.2-1,NIC.Slot.2-2,NIC.Slot.2-3,NIC.Integrated.1-3-1
raw: racadm set BIOS.BiosBootSettings.BootSeq {{director_r620_interfaces}}
args:
executable: ''
register: result_boot_setup
Expand Down Expand Up @@ -98,6 +100,17 @@
delay: 10
- debug: var=result_check_complete

# Test that our settings actually took
- name: retrieve the actual boot settings via racadm
raw: racadm get BIOS.BiosBootSettings.BootSeq
args:
executable: ''
register: racadm_boot_results
until: racadm_boot_results.stdout.find("BootSeq={{director_r620_interfaces}}") != -1
retries: 50
delay: 10
- debug: var=racadm_boot_results

# Record when we are finished
- name: Generate Time of Completion
local_action: command date +%Y-%m-%d-%H:%M
Expand Down
17 changes: 15 additions & 2 deletions ansible/racadm-setup-boot-r620-foreman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
vars:
untouchables: mgmt-foreman.example.com
hosts: all:!{{untouchables}}
tasks:
vars_files:
- idrac_interfaces.yml
tasks:

# try to gracefully shutdown target server
- name: shutdown underlying OS
Expand Down Expand Up @@ -62,7 +64,7 @@

# setup the new boot order to ensure 1st nic is before disk
- name: racadm setup boot
raw: racadm set BIOS.BiosBootSettings.BootSeq NIC.Integrated.1-3-1,HardDisk.List.1-1,NIC.Slot.2-4,NIC.Slot.2-1,NIC.Slot.2-2,NIC.Slot.2-3
raw: racadm set BIOS.BiosBootSettings.BootSeq {{foreman_r620_interfaces}}
args:
executable: ''
register: result_boot_setup
Expand Down Expand Up @@ -98,6 +100,17 @@
delay: 10
- debug: var=result_check_complete

# Test that our settings actually took
- name: retrieve the actual boot settings via racadm
raw: racadm get BIOS.BiosBootSettings.BootSeq
args:
executable: ''
register: racadm_boot_results
until: racadm_boot_results.stdout.find("BootSeq={{foreman_r620_interfaces}}") != -1
retries: 50
delay: 10
- debug: var=racadm_boot_results

# Record when we are finished
- name: Generate Time of Completion
local_action: command date +%Y-%m-%d-%H:%M
Expand Down

0 comments on commit bf4525c

Please sign in to comment.