radfish-idrac 0.2.4 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/radfish/idrac/version.rb +1 -1
- data/lib/radfish/idrac_adapter.rb +44 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe4192eaf14f56164f8c63f193dd044dd00e7bc0b033ac05f6a37da3e37d958b
|
4
|
+
data.tar.gz: 2e76768d6de2fe3bced5c333ae04eba59af16f568099b1d99199a61c1f998587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8acd7d899af9c13af80d1f616c9751012114f5e770f1dd537f3c5661a884e5b49d66b1fb64f556394b2ee86e9a394de0002a165b753fc356b0729e77567fc48d
|
7
|
+
data.tar.gz: 57b23bd3e381b59e197550a835a6f69a9ea7015f8897e65526bbb99c8e41bc17ef5db790c58c26872652e14722698bad2f7bf5f5cc9ece2492f7bf0815fa05e3
|
@@ -74,7 +74,7 @@ module Radfish
|
|
74
74
|
while attempts < max_attempts
|
75
75
|
sleep 2
|
76
76
|
begin
|
77
|
-
status =
|
77
|
+
status = power_status
|
78
78
|
break if status == "On"
|
79
79
|
rescue => e
|
80
80
|
# BMC might be temporarily unavailable during power operations
|
@@ -98,7 +98,7 @@ module Radfish
|
|
98
98
|
while attempts < max_attempts
|
99
99
|
sleep 2
|
100
100
|
begin
|
101
|
-
status =
|
101
|
+
status = power_status
|
102
102
|
break if status == "Off"
|
103
103
|
rescue => e
|
104
104
|
# BMC might be temporarily unavailable during power operations
|
@@ -134,7 +134,7 @@ module Radfish
|
|
134
134
|
while attempts < max_attempts
|
135
135
|
sleep 2
|
136
136
|
begin
|
137
|
-
status =
|
137
|
+
status = power_status
|
138
138
|
went_down = true if status == "Off" && !went_down
|
139
139
|
break if went_down && status == "On"
|
140
140
|
rescue => e
|
@@ -694,6 +694,7 @@ module Radfish
|
|
694
694
|
})
|
695
695
|
|
696
696
|
# Apply the configuration
|
697
|
+
puts "Final SCP to be applied: #{JSON.pretty_generate(scp)}".cyan
|
697
698
|
@idrac_client.set_system_configuration_profile(scp)
|
698
699
|
|
699
700
|
{ changes_made: true }
|
@@ -810,6 +811,46 @@ module Radfish
|
|
810
811
|
def set_bmc_dhcp
|
811
812
|
@idrac_client.set_bmc_dhcp
|
812
813
|
end
|
814
|
+
|
815
|
+
# Storage management methods - controller encryption and virtual disk operations
|
816
|
+
|
817
|
+
def enable_local_key_management(controller_id:, passphrase:, key_id:)
|
818
|
+
@idrac_client.enable_local_key_management(
|
819
|
+
controller_id: controller_id,
|
820
|
+
passphrase: passphrase,
|
821
|
+
key_id: key_id
|
822
|
+
)
|
823
|
+
end
|
824
|
+
|
825
|
+
def disable_local_key_management(controller_id:)
|
826
|
+
@idrac_client.disable_local_key_management(controller_id: controller_id)
|
827
|
+
end
|
828
|
+
|
829
|
+
def create_virtual_disk(**options)
|
830
|
+
@idrac_client.create_virtual_disk(**options)
|
831
|
+
end
|
832
|
+
|
833
|
+
def delete_volume(volume_odata_id)
|
834
|
+
@idrac_client.delete_volume(volume_odata_id)
|
835
|
+
end
|
836
|
+
|
837
|
+
# Additional storage helper methods available in iDRAC gem
|
838
|
+
|
839
|
+
def controller_encryption_capable?
|
840
|
+
@idrac_client.controller_encryption_capable?
|
841
|
+
end
|
842
|
+
|
843
|
+
def controller_encryption_enabled?
|
844
|
+
@idrac_client.controller_encryption_enabled?
|
845
|
+
end
|
846
|
+
|
847
|
+
def all_seds?
|
848
|
+
@idrac_client.all_seds?
|
849
|
+
end
|
850
|
+
|
851
|
+
def sed_ready?
|
852
|
+
@idrac_client.sed_ready?
|
853
|
+
end
|
813
854
|
end
|
814
855
|
|
815
856
|
# Register the adapter
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radfish-idrac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Siegel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: radfish
|