-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cab7538
commit a2535bd
Showing
22 changed files
with
440 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
--- | ||
- name: Immediately update the firmware of a single component for a specific host | ||
dellemc.openmanage.omevv.omevv_firmware: | ||
hostname: "192.168.0.1" | ||
vcenter_uuid: "xxxxx" | ||
vcenter_username: "username" | ||
vcenter_password: "password" | ||
ca_path: "path/to/ca_file" | ||
run_now: false | ||
date_time: "2024-09-10T20:50:00Z" | ||
enter_maintenance_mode_timeout: 60 | ||
enter_maintenance_mode_options: FULL_DATA_MIGRATION | ||
drs_check: true | ||
evacuate_VMs: true | ||
exit_maintenance_mode: true | ||
reboot_options: NEXTREBOOT | ||
maintenance_mode_count_check: true | ||
check_vSAN_health: true | ||
reset_idrac: true | ||
delete_job_queue: true | ||
targets: | ||
- servicetag: SVCTAG1 | ||
firmware_components: | ||
- "DCIM:INSTALLED#802__Diagnostics.Embedded.1:LC.Embedded.1" | ||
delegate_to: localhost | ||
|
||
- name: Update the firmware of multiple components at scheduled time for a specific host | ||
dellemc.openmanage.omevv.omevv_firmware: | ||
hostname: "192.168.0.1" | ||
vcenter_uuid: "xxxxx" | ||
vcenter_username: "username" | ||
vcenter_password: "password" | ||
ca_path: "path/to/ca_file" | ||
run_now: false | ||
date_time: "2024-09-10T20:50:00+05:30" | ||
enter_maintenance_mode_timeout: 60 | ||
enter_maintenance_mode_options: ENSURE_ACCESSIBILITY | ||
drs_check: true | ||
evacuate_VMs: true | ||
exit_maintenance_mode: true | ||
reboot_options: FORCEREBOOT | ||
maintenance_mode_count_check: true | ||
check_vSAN_health: true | ||
reset_idrac: false | ||
delete_job_queue: false | ||
targets: | ||
- host: 192.168.0.2 | ||
firmware_components: | ||
- "DCIM:INSTALLED#iDRAC.Embedded.1-1#IDRACinfo" | ||
- "DCIM:INSTALLED#301_C_BOSS.SL.14-1" | ||
- "DCIM:INSTALLED#807__TPM.Integrated.1-1" | ||
delegate_to: localhost | ||
|
||
- name: Update the firmware of multiple components at scheduled time for a cluster | ||
dellemc.openmanage.omevv.omevv_firmware: | ||
hostname: "192.168.0.1" | ||
vcenter_uuid: "xxxxx" | ||
vcenter_username: "username" | ||
vcenter_password: "password" | ||
ca_path: "path/to/ca_file" | ||
run_now: false | ||
date_time: "2024-09-10T20:50:00+05:30" | ||
enter_maintenance_mode_timeout: 60 | ||
enter_maintenance_mode_options: ENSURE_ACCESSIBILITY | ||
drs_check: true | ||
evacuate_VMs: true | ||
exit_maintenance_mode: true | ||
reboot_options: SAFEREBOOT | ||
maintenance_mode_count_check: true | ||
check_vSAN_health: true | ||
reset_idrac: false | ||
delete_job_queue: false | ||
targets: | ||
- cluster: cluster_a | ||
firmware_components: | ||
- "DCIM:INSTALLED#iDRAC.Embedded.1-1#IDRACinfo" | ||
- "DCIM:INSTALLED#301_C_BOSS.SL.14-1" | ||
- "DCIM:INSTALLED#807__TPM.Integrated.1-1" | ||
delegate_to: localhost | ||
|
||
- name: Retrieve firmware compliance report of all the hosts in the specific cluster | ||
dellemc.openmanage.omevv_firmware_compliance_info: | ||
hostname: "192.168.0.1" | ||
vcenter_uuid: "xxxxx" | ||
vcenter_username: "username" | ||
vcenter_password: "password" | ||
ca_path: "path/to/ca_file" | ||
clusters: | ||
- cluster_name: cluster_a | ||
register: compliance_data | ||
delegate_to: localhost | ||
|
||
- name: Extract source name of all components | ||
ansible.builtin.set_fact: | ||
source_names: "{{ compliance_data.hostComplianceReports[0].componentCompliances|json_query('*.sourceName') }}" | ||
delegate_to: localhost | ||
|
||
- name: Extract source name of a specific component | ||
ansible.builtin.set_fact: | ||
source_name: "{{ compliance_data.hostComplianceReports[0].componentCompliances[0].sourceName }}" | ||
delegate_to: localhost | ||
|
||
- name: Update firmware at the scheduled time for a specific host | ||
dellemc.openmanage.omevv.omevv_firmware: | ||
hostname: "192.168.0.1" | ||
vcenter_uuid: "xxxxx" | ||
vcenter_username: "username" | ||
vcenter_password: "password" | ||
ca_path: "path/to/ca_file" | ||
run_now: false | ||
date_time: "2024-09-10T20:50:00Z" | ||
enter_maintenance_mode_timeout: 60 | ||
enter_maintenance_mode_options: NO_DATA_MIGRATION | ||
drs_check: true | ||
evacuate_VMs: false | ||
exit_maintenance_mode: true | ||
reboot_options: SAFEREBOOT | ||
maintenance_mode_count_check: true | ||
check_vSAN_health: true | ||
reset_idrac: true | ||
delete_job_queue: true | ||
targets: | ||
- servicetag: SVCTAG1 | ||
firmware_components: | ||
- "{{ source_name }}" | ||
delegate_to: localhost |
4 changes: 3 additions & 1 deletion
4
tests/integration/targets/idrac_certificates/tests/_check_firmware_version_supported.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/integration/targets/idrac_certificates/tests/_cleanup.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
tests/integration/targets/idrac_certificates/tests/_download_certificates.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
--- | ||
- name: Download files | ||
ansible.builtin.get_url: | ||
url: "http://{{ https_share_ip }}{{ https_certificate_path }}{{ item.value }}" | ||
url: "http://{{ https_share_ip }}{{ https_certificate_path }} | ||
{{ item.value }}" | ||
dest: "{{ base_path_for_import_certificate }}/{{ item.value }}" | ||
headers: | ||
Authorization: "Basic {{ (https_share_username + ':' + https_share_password) | b64encode }}" | ||
Authorization: "Basic {{ ( | ||
https_share_username + ':' + https_share_password) | b64encode }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/integration/targets/idrac_certificates/tests/_wait_for_idrac_readiness.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- name: Wait for port to become open on the host | ||
ansible.builtin.wait_for: | ||
host: "{{ idrac_ip }}" | ||
|
4 changes: 3 additions & 1 deletion
4
tests/integration/targets/idrac_certificates/tests/ansible_doc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.