collins_client 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/collins/api/management.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82af07b81292bf644d807ab02787436f4a29dca5
|
4
|
+
data.tar.gz: c6f125aeebe6b089f1b2d5a6acbe9e42e2bdf47c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f34de9ce41bdc45276de5847bd36b23e31cf27a1997a55910df03e8dea761907b9b4c0edc81570b5e421c73f1ff412f3a35b85fdefe664c44aa01d1c7cb34aff
|
7
|
+
data.tar.gz: db2c3365884a81a0358e195427507bfe50f3053223d5b4a825aa6f78db6549b1d80eab5d2b67148988a0a853202b4cc934e0f535bd1321acc5c1ea9b19e21223
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.20
|
@@ -79,6 +79,20 @@ module Collins; module Api
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
+
# allocate IPMI address/creds on an asset in a given pool, and handles
|
83
|
+
# generating username/password, like a normal asset creation with IPMI.
|
84
|
+
# omit pool option for default IPMI pool
|
85
|
+
def ipmi_allocate asset_or_tag, options = {}
|
86
|
+
asset = get_asset_or_tag asset_or_tag
|
87
|
+
parameters = { :pool => get_option(:pool, options, nil) }
|
88
|
+
parameters = select_non_empty_parameters parameters
|
89
|
+
logger.debug("Allocating IPMI details on asset #{asset.tag} with parameters #{parameters.inspect}")
|
90
|
+
http_put("/api/asset/#{asset.tag}/ipmi", parameters, asset.location) do |response|
|
91
|
+
parse_response response, :expects => [201], :as => :status
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
|
82
96
|
end # module Management
|
83
97
|
|
84
98
|
end; end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: collins_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blake Matheny
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements: []
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.
|
167
|
+
rubygems_version: 2.6.12
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: Client library for Collins API
|