smart_proxy_discovery_image 1.0.5 → 1.0.6
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: 9e9e8345ac2b1139379f5afc7d0b617258afc2e2
|
4
|
+
data.tar.gz: fbf8485197642a9fb8e0ed9b36ecdfdc04bcc4e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac98ab2e5b4cbf3d1dcea1c763e84d799d2860c46cf99a1d20e5d7560d493570fa302fda5ca6c1b5bbd0b029703fa704f5606bc496fdbc8c5d6389a2ba68a341
|
7
|
+
data.tar.gz: 2f6a15bccbf3533af192e2571495cd36adbb891491d81f612e4efc99918856e5db1c15c707b4b4e7c58da279f435944fafdde9004a2f1af8ff8130854e4858c3
|
@@ -8,7 +8,7 @@ module Proxy::DiscoveryImage
|
|
8
8
|
|
9
9
|
put "/reboot" do
|
10
10
|
log_halt 500, "shutdown binary was not found" unless (shutdown = which('shutdown'))
|
11
|
-
run_after_response 5, shutdown, "-r", "now", "Foreman
|
11
|
+
run_after_response 5, shutdown, "-r", "now", "Foreman Power API reboot"
|
12
12
|
content_type :json
|
13
13
|
{ :result => true }.to_json
|
14
14
|
end
|
@@ -25,8 +25,7 @@ module Proxy::DiscoveryImage
|
|
25
25
|
if ::Proxy::HttpDownload.new(data['initram'], '/tmp/initrd.img').start.join != 0
|
26
26
|
log_halt 500, "cannot download initram for kexec!"
|
27
27
|
end
|
28
|
-
|
29
|
-
run_after_response 2, kexec, "--force", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz"
|
28
|
+
run_after_response 2, kexec, "--force", "--reset-vga", "--append=#{data['append']}", "--initrd=/tmp/initrd.img", "/tmp/vmlinuz", *data['extra']
|
30
29
|
{ :result => true }.to_json
|
31
30
|
end
|
32
31
|
|
@@ -34,11 +33,11 @@ module Proxy::DiscoveryImage
|
|
34
33
|
# Execute command in a separate thread after 5 seconds to give the server some
|
35
34
|
# time to finish the request. Does *not* execute via a shell.
|
36
35
|
def run_after_response(seconds, *command)
|
37
|
-
logger.debug "
|
36
|
+
logger.debug "Power API command scheduled in #{seconds} seconds"
|
38
37
|
Thread.start do
|
39
38
|
begin
|
40
39
|
sleep seconds
|
41
|
-
logger.debug "
|
40
|
+
logger.debug "Power API executing: #{command.inspect}"
|
42
41
|
if (sudo = which('sudo'))
|
43
42
|
status = system(sudo, *command)
|
44
43
|
else
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Zapletal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-24 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,17 +19,17 @@ executables: []
|
|
19
19
|
extensions: []
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE
|
24
|
+
- README.md
|
25
|
+
- bundler.d/discovery_image.rb
|
26
|
+
- lib/smart_proxy_discovery_image.rb
|
27
|
+
- lib/smart_proxy_discovery_image/http_config.ru
|
22
28
|
- lib/smart_proxy_discovery_image/inventory_api.rb
|
23
29
|
- lib/smart_proxy_discovery_image/plugin.rb
|
24
30
|
- lib/smart_proxy_discovery_image/power_api.rb
|
25
|
-
- lib/smart_proxy_discovery_image/http_config.ru
|
26
31
|
- lib/smart_proxy_discovery_image/version.rb
|
27
|
-
- lib/smart_proxy_discovery_image.rb
|
28
|
-
- bundler.d/discovery_image.rb
|
29
32
|
- settings.d/discovery_image.yml.example
|
30
|
-
- Gemfile
|
31
|
-
- LICENSE
|
32
|
-
- README.md
|
33
33
|
homepage: http://github.com/theforeman/smart_proxy_discovery_image
|
34
34
|
licenses:
|
35
35
|
- GPLv3
|
@@ -40,19 +40,18 @@ require_paths:
|
|
40
40
|
- lib
|
41
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
52
|
rubyforge_project:
|
53
|
-
rubygems_version: 2.
|
53
|
+
rubygems_version: 2.6.11
|
54
54
|
signing_key:
|
55
55
|
specification_version: 4
|
56
56
|
summary: FDI API for Foreman Smart-Proxy
|
57
57
|
test_files: []
|
58
|
-
has_rdoc:
|