Skip to content

Commit

Permalink
fix: implement Manager.ResetToDefaults
Browse files Browse the repository at this point in the history
Fixes opiproject#65

Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Apr 3, 2024
1 parent 8c087fe commit e53af26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tags: [opi, dpu, redfish, automation, devops, infrastructure]
# L(specifiers,https://python-semanticversion.readthedocs.io/en/latest/#requirement-specification). Multiple version
# range specifiers can be set and are separated by ','
dependencies: {
"community.general": ">=8.4.0",
"community.general": ">=8.6.0",
}

# The URL of the originating SCM repository
Expand Down
11 changes: 11 additions & 0 deletions roles/bmc_factory_reset/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
---
# tasks file for bmc_factory_reset

- name: Reset DPU BMC to default factory settings
community.general.redfish_command:
category: Manager
command: ResetToDefaults
baseuri: "{{ inventory_hostname }}"
username: "{{ dpu_bmc_username }}"
password: "{{ dpu_bmc_password }}"
reset_to_defaults_mode: ResetAll
delegate_to: "{{ bmc_factory_reset_delegate }}"
register: result

0 comments on commit e53af26

Please sign in to comment.