foreman_rescue 2.0.1 → 3.0.0
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/README.md +1 -0
- data/app/models/setting/rescue.rb +1 -1
- data/app/views/foreman/unattended/provisioning_templates/PXELinux/kickstart_rescue_pxelinux.erb +1 -1
- data/app/views/foreman_rescue/hosts/rescue.html.erb +26 -1
- data/lib/foreman_rescue/engine.rb +1 -1
- data/lib/foreman_rescue/version.rb +1 -1
- 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: 55de93b62e157091d65fcab30cb1874ec5ac90a2f26ee581330942907c2a8b2f
|
|
4
|
+
data.tar.gz: 13649843d4c4a7fe195c109851e839c627f205c8a12294a1837299f5daed79da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 535f2a6efd573bb1127a731eee765cfc233b9e37b41bbc8a63a9cb8cb99aaaef92e0ddc547b006aae92a9fd1a9892dad9924dfb459759033d27cb1d832f26bb4
|
|
7
|
+
data.tar.gz: 8de3049f0f3634be135618fb79f109f1bf047c8e752f5519757d4ba682aa5280a91257d000afef65cee9cb702574d303ae0914fefb99f6e59f3fe959c833044a
|
data/README.md
CHANGED
|
@@ -15,7 +15,7 @@ class Setting
|
|
|
15
15
|
set('rescue_pxegrub2_tftp_template',
|
|
16
16
|
N_('PXEGrub2 template used when booting rescue system'),
|
|
17
17
|
'', N_('PXEGrub2 rescue template'), nil,
|
|
18
|
-
:collection => proc { Setting::Rescue.templates('
|
|
18
|
+
:collection => proc { Setting::Rescue.templates('PXEGrub2') })
|
|
19
19
|
]
|
|
20
20
|
end
|
|
21
21
|
|
data/app/views/foreman/unattended/provisioning_templates/PXELinux/kickstart_rescue_pxelinux.erb
CHANGED
|
@@ -49,7 +49,7 @@ oses:
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
# kickstart repository for LiveOS
|
|
52
|
-
options.push("method=#{
|
|
52
|
+
options.push("method=#{medium_uri}")
|
|
53
53
|
|
|
54
54
|
if host_param('blacklist')
|
|
55
55
|
options.push("modprobe.blacklist=" + host_param('blacklist').gsub(' ', ''))
|
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
<%= breadcrumbs(
|
|
2
|
+
items:
|
|
3
|
+
[
|
|
4
|
+
{
|
|
5
|
+
caption: _('All Hosts'),
|
|
6
|
+
url: hosts_path
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
caption: {
|
|
10
|
+
text: @host.to_label,
|
|
11
|
+
icon: {
|
|
12
|
+
alt: label(@host.operatingsystem),
|
|
13
|
+
url: icon(@host.operatingsystem, path: true)
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
url: host_path(@host)
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
caption: _('Rescue Mode'),
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
resource_url: api_hosts_path(thin: true),
|
|
23
|
+
switcher_item_url: rescue_host_path(':name'),
|
|
24
|
+
switchable: true
|
|
25
|
+
) %>
|
|
26
|
+
|
|
2
27
|
<div class="blank-slate-pf">
|
|
3
28
|
<div class="blank-slate-pf-icon">
|
|
4
29
|
<%= icon_text('medkit', '', :kind => 'fa', :class => @host.rescue_mode? ? 'text-success' : '') %>
|
|
@@ -25,7 +25,7 @@ module ForemanRescue
|
|
|
25
25
|
|
|
26
26
|
initializer 'foreman_rescue.register_plugin', :before => :finisher_hook do |_app|
|
|
27
27
|
Foreman::Plugin.register :foreman_rescue do
|
|
28
|
-
requires_foreman '>= 1.
|
|
28
|
+
requires_foreman '>= 1.21'
|
|
29
29
|
|
|
30
30
|
# Add permissions
|
|
31
31
|
security_block :foreman_rescue do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_rescue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Timo Goebel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rdoc
|