-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine: resources: Add a bmc resource
This resource manages bmc devices in servers or elsewhere. This also integrates with the provisioner code.
- Loading branch information
1 parent
3107dfb
commit e6d614f
Showing
13 changed files
with
1,017 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,12 @@ | ||
# A standard bmc might connect with: | ||
bmc:power "gofishs://[email protected]:8800" { | ||
#username => "ADMIN", | ||
password => "ADMIN", | ||
#driver => "gofishs", # https gofish | ||
|
||
state => "on", | ||
|
||
Meta:poll => 10, # required until BMC's support real events! | ||
} | ||
|
||
# The testing rpc example can connect to: rpcs://127.0.0.1:8800 instead. |
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,45 @@ | ||
{ | ||
"@odata.context": "/redfish/v1/$metadata#ServiceRoot.ServiceRoot", | ||
"@odata.type": "#ServiceRoot.v1_1_0.ServiceRoot", | ||
"@odata.id": "/redfish/v1/", | ||
"Id": "RootService", | ||
"Name": "Root Service", | ||
"RedfishVersion": "1.0.1", | ||
"UUID": "00000000-0000-0000-0000-0CC47A8BDADA", | ||
"Systems": { | ||
"@odata.id": "/redfish/v1/Systems" | ||
}, | ||
"Chassis": { | ||
"@odata.id": "/redfish/v1/Chassis" | ||
}, | ||
"Managers": { | ||
"@odata.id": "/redfish/v1/Managers" | ||
}, | ||
"Tasks": { | ||
"@odata.id": "/redfish/v1/TaskService" | ||
}, | ||
"SessionService": { | ||
"@odata.id": "/redfish/v1/SessionService" | ||
}, | ||
"AccountService": { | ||
"@odata.id": "/redfish/v1/AccountService" | ||
}, | ||
"EventService": { | ||
"@odata.id": "/redfish/v1/EventService" | ||
}, | ||
"UpdateService": { | ||
"@odata.id": "/redfish/v1/UpdateService" | ||
}, | ||
"Registries": { | ||
"@odata.id": "/redfish/v1/Registries" | ||
}, | ||
"JsonSchemas": { | ||
"@odata.id": "/redfish/v1/JsonSchemas" | ||
}, | ||
"Links": { | ||
"Sessions": { | ||
"@odata.id": "/redfish/v1/SessionService/Sessions" | ||
} | ||
}, | ||
"Oem": {} | ||
} |
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,6 @@ | ||
{ | ||
"Success": { | ||
"code": "Base.v1_4_0.Success", | ||
"Message": "Successfully Completed Request." | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"@odata.context": "/redfish/v1/$metadata#Session.Session", | ||
"@odata.type": "#Session.v1_0_0.Session", | ||
"@odata.id": "/redfish/v1/SessionService/Sessions/1", | ||
"Id": "1", | ||
"Name": "User Session", | ||
"Description": "Manager User Session", | ||
"UserName": "ADMIN", | ||
"Oem": {} | ||
} |
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,13 @@ | ||
{ | ||
"@odata.context": "/redfish/v1/$metadata#ComputerSystemCollection.ComputerSystemCollection", | ||
"@odata.type": "#ComputerSystemCollection.ComputerSystemCollection", | ||
"@odata.id": "/redfish/v1/Systems", | ||
"Name": "Computer System Collection", | ||
"Description": "Computer System Collection", | ||
"[email protected]": 1, | ||
"Members": [ | ||
{ | ||
"@odata.id": "/redfish/v1/Systems/1" | ||
} | ||
] | ||
} |
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,107 @@ | ||
{ | ||
"@odata.context": "/redfish/v1/$metadata#ComputerSystem.ComputerSystem", | ||
"@odata.type": "#ComputerSystem.v1_3_0.ComputerSystem", | ||
"@odata.id": "/redfish/v1/Systems/1", | ||
"Id": "1", | ||
"Name": "System", | ||
"Description": "Description of server", | ||
"Status": { | ||
"State": "Enabled", | ||
"Health": "Critical" | ||
}, | ||
"SerialNumber": " ", | ||
"PartNumber": "", | ||
"SystemType": "Physical", | ||
"BiosVersion": "3.3", | ||
"Manufacturer": "Supermicro", | ||
"Model": "Super Server", | ||
"SKU": "To be filled by O.E.M.", | ||
"UUID": "00000000-0000-0000-0000-0CC47A847624", | ||
"ProcessorSummary": { | ||
"Count": 1, | ||
"Model": "Intel(R) Xeon(R) processor", | ||
"Status": { | ||
"State": "Enabled", | ||
"Health": "OK" | ||
} | ||
}, | ||
"MemorySummary": { | ||
"TotalSystemMemoryGiB": 16, | ||
"Status": { | ||
"State": "Enabled", | ||
"Health": "OK" | ||
} | ||
}, | ||
"IndicatorLED": "Off", | ||
"PowerState": "{{ .PowerState }}", | ||
"Boot": { | ||
"BootSourceOverrideEnabled": "Disabled", | ||
"BootSourceOverrideTarget": "None", | ||
"[email protected]": [ | ||
"None", | ||
"Pxe", | ||
"Hdd", | ||
"Diags", | ||
"CD/DVD", | ||
"BiosSetup", | ||
"FloppyRemovableMedia", | ||
"UsbKey", | ||
"UsbHdd", | ||
"UsbFloppy", | ||
"UsbCd", | ||
"UefiUsbKey", | ||
"UefiCd", | ||
"UefiHdd", | ||
"UefiUsbHdd", | ||
"UefiUsbCd" | ||
] | ||
}, | ||
"Processors": { | ||
"@odata.id": "/redfish/v1/Systems/1/Processors" | ||
}, | ||
"Memory": { | ||
"@odata.id": "/redfish/v1/Systems/1/Memory" | ||
}, | ||
"EthernetInterfaces": { | ||
"@odata.id": "/redfish/v1/Systems/1/EthernetInterfaces" | ||
}, | ||
"SimpleStorage": { | ||
"@odata.id": "/redfish/v1/Systems/1/SimpleStorage" | ||
}, | ||
"Storage": { | ||
"@odata.id": "/redfish/v1/Systems/1/Storage" | ||
}, | ||
"LogServices": { | ||
"@odata.id": "/redfish/v1/Systems/1/LogServices" | ||
}, | ||
"Links": { | ||
"Chassis": [ | ||
{ | ||
"@odata.id": "/redfish/v1/Chassis/1" | ||
} | ||
], | ||
"ManagedBy": [ | ||
{ | ||
"@odata.id": "/redfish/v1/Managers/1" | ||
} | ||
], | ||
"Oem": {} | ||
}, | ||
"Actions": { | ||
"#ComputerSystem.Reset": { | ||
"target": "/redfish/v1/Systems/1/Actions/ComputerSystem.Reset", | ||
"[email protected]": [ | ||
"On", | ||
"ForceOff", | ||
"GracefulShutdown", | ||
"GracefulRestart", | ||
"ForceRestart", | ||
"Nmi", | ||
"ForceOn" | ||
] | ||
} | ||
}, | ||
"Oem": { | ||
"Supermicro": {} | ||
} | ||
} |
Oops, something went wrong.