smart_proxy_discovery_image 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7c6b10c6097546c69107e77831b8caacc340ab8
|
4
|
+
data.tar.gz: 131af61792cc724729b7294b016dc70e4a28216c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c843b688ac17c86d4785ebef7a5bf635ee3bc1d133ead77413f56d9d65613db57c3d2c52efc3f65ce0399606e68e084bcfa00d9cceae919929e626baf6e18812
|
7
|
+
data.tar.gz: c0e132e164d1ae53655e083f09a8d52520a0dbdebc7dd0f663f8f0abe9e98e70caa19c3ce531545caa5a61c977ceacca3e13b53266f5912e03a57f4d358cabb1
|
@@ -17,12 +17,14 @@ module Proxy::DiscoveryImage
|
|
17
17
|
log_halt 500, "kexec binary was not found" unless (kexec = which('kexec'))
|
18
18
|
data = JSON.parse request.body.read
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
logger.debug "Downloading: #{data['kernel']}"
|
21
|
+
if ::Proxy::HttpDownload.new(data['kernel'], '/tmp/vmlinuz').start.join != 0
|
22
|
+
log_halt 500, "cannot download kernel for kexec!"
|
23
|
+
end
|
24
|
+
logger.debug "Downloading: #{data['initram']}"
|
25
|
+
if ::Proxy::HttpDownload.new(data['initram'], '/tmp/initrd.img').start.join != 0
|
26
|
+
log_halt 500, "cannot download initram for kexec!"
|
27
|
+
end
|
26
28
|
|
27
29
|
run_after_response 2, kexec, "--force", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz"
|
28
30
|
{ :result => true }.to_json
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smart_proxy_discovery_image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Zapletal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
Smart Proxy plugin providing Image API on discovered nodes. This plugin is only
|
@@ -19,6 +19,7 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
+
- lib/smart_proxy_discovery_image/inventory_api.rb
|
22
23
|
- lib/smart_proxy_discovery_image/plugin.rb
|
23
24
|
- lib/smart_proxy_discovery_image/power_api.rb
|
24
25
|
- lib/smart_proxy_discovery_image/http_config.ru
|