ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
822 stars 1.52k forks source link

Support same reset actions on Managers as on Systems #901

Closed billdodd closed 4 years ago

billdodd commented 4 years ago
SUMMARY

The redfish_command.py module supports commands for performing power reset operations (power on, off, reboot, etc.) on a Redfish System. Redfish Managers have the same model for power reset operations as Systems. But the redfish_command.py module currently only supports a single reset option for Managers - GracefulRestart.

This feature request is to support the same power reset actions on Managers as on Systems.

ISSUE TYPE
COMPONENT NAME

redfish_command.py

ADDITIONAL INFORMATION

Currently, there is no way to issue reset actions like On, ForceOff, GracefulShutdown, and ForceRestart on Redfish Managers. These are actions that BMC operators may need to perform.

Example of plays that can be performed after this feature has been implemented:

  - name: Turn manager power off
    community.general.redfish_command:
      category: Manager
      command: PowerForceOff
      resource_id: BMC
  - name: Turn manager power on
    community.general.redfish_command:
      category: Manager
      command: PowerOn
      resource_id: BMC
ansibullbot commented 4 years ago

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 4 years ago

cc @mraineri @tomasg2012 click here for bot help

ansibullbot commented 4 years ago

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help