| gpowerd_config { |
| state_monitor_config [ |
| { |
| state_name: "PowerState" |
| state_gathering_info { |
| redfish { uri: "/redfish/v1/Systems/system" json_key: "PowerState" } |
| collection_interval_ms: 1000 |
| prototype { power_state { state: POWER_STATE_POWERING_ON } } |
| } |
| system_component { node_entity_tag: "host-compute-node" } |
| } |
| ] |
| } |
| |
| action_configs { |
| action_name: "host_reboot_force" |
| action { |
| action_type: ACTION_TYPE_REBOOT |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceRestart\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_reboot_graceful" |
| action { |
| action_type: ACTION_TYPE_REBOOT |
| action_severity: ACTION_SEVERITY_GRACEFUL |
| target_component { |
| node_entity_tag: "host-compute-node" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"GracefulRestart\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_on_force" |
| action { |
| action_type: ACTION_TYPE_ON |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceOn\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_on_graceful" |
| action { |
| action_type: ACTION_TYPE_ON |
| action_severity: ACTION_SEVERITY_GRACEFUL |
| target_component { |
| node_entity_tag: "host-compute-node" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"On\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_off_force" |
| action { |
| action_type: ACTION_TYPE_OFF |
| action_severity: ACTION_SEVERITY_FORCE |
| target_component { |
| node_entity_tag: "host-compute-node" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"ForceOff\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |
| |
| action_configs { |
| action_name: "host_off_graceful" |
| action { |
| action_type: ACTION_TYPE_OFF |
| action_severity: ACTION_SEVERITY_GRACEFUL |
| target_component { |
| node_entity_tag: "host-compute-node" |
| } |
| } |
| redfish { |
| uri: "/redfish/v1/Systems/system/Actions/ComputerSystem.Reset" |
| json_body: "{\"ResetType\" : \"GracefulShutdown\"}" |
| ip: "127.0.0.1" |
| port: 80 |
| } |
| } |