smart_proxy_discovery_image 1.0.7 → 1.0.9
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aaf0f3ab7f898a908612d91c5facd39e1956112b
|
|
4
|
+
data.tar.gz: 55bdee44f8dbbd6b5431f20b34624063ab665dfc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48373330b8a7d67d78228abfb6381a3a2155f3155611f60fb08fb9ef8f306a837d1f8bae5f1e22ed3835df3cb63a8b8b02685328952f647dbcaf121779600d20
|
|
7
|
+
data.tar.gz: b18091252c9616cab41674aef1dba44eb5f4e0fd1a6f66aa24d6807c5f8a419e968cddda751095003a00698d26252c534503433e8f0f769e81c8a4ceaf148f20
|
|
@@ -15,6 +15,8 @@ module Proxy::DiscoveryImage
|
|
|
15
15
|
|
|
16
16
|
put "/kexec" do
|
|
17
17
|
body_data = request.body.read
|
|
18
|
+
# change virtual terminal out of newt screen
|
|
19
|
+
system("chvt", "2")
|
|
18
20
|
logger.debug "Initiated kexec provisioning with #{body_data}"
|
|
19
21
|
log_halt(500, "kexec binary was not found") unless (kexec = which('kexec'))
|
|
20
22
|
begin
|
|
@@ -30,7 +32,7 @@ module Proxy::DiscoveryImage
|
|
|
30
32
|
if ::Proxy::HttpDownload.new(data['initram'], '/tmp/initrd.img').start.join != 0
|
|
31
33
|
log_halt 500, "cannot download initram for kexec!"
|
|
32
34
|
end
|
|
33
|
-
run_after_response 2, kexec, "--force", "--reset-vga", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz", *data['extra']
|
|
35
|
+
run_after_response 2, kexec, "--debug", "--force", "--reset-vga", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz", *data['extra']
|
|
34
36
|
{ :result => true }.to_json
|
|
35
37
|
end
|
|
36
38
|
|
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.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lukas Zapletal
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-11-02 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
|