foreman_bootdisk 2.0.2 → 2.0.3
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: ada1629fb10bac22102cbd9eefade4131d825734
|
4
|
+
data.tar.gz: d3c3d123abc34f9d80b7aabb533a413402787820
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85bf056ee2b9ffafb0ab4ac605a65a9c5e9e400e9f920c93f66c270a949ed3d7f47fca3322e3d9ffa21a48cf62e6141a94210f20edc155dd93c0a5fe925d13da
|
7
|
+
data.tar.gz: d8e071b412f3db4636a7379154f408864149e3019e34b084f066ccb0115e2e0eda3c8d0e21fa99f3c15012c444c4c0b04a279c288281acfaaf5e15366a8246e5
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v2.0.3
|
4
|
+
* fix Foreman 1.5 auth system compatibility (#4893)
|
5
|
+
* fix filename of generic ISO image in rake task
|
6
|
+
|
3
7
|
## v2.0.2
|
4
8
|
* add MAC address to iPXE chain request for NAT (#3562, Jon Fautley)
|
5
9
|
* raise friendly error if safemode is enabled (#4184, #2948)
|
@@ -15,5 +15,16 @@ module Bootdisk
|
|
15
15
|
send_data File.read(iso), :filename => "bootdisk_#{URI.parse(Setting[:foreman_url]).host}.iso"
|
16
16
|
end
|
17
17
|
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def action_permission
|
22
|
+
case params[:action]
|
23
|
+
when 'generic_iso'
|
24
|
+
:download
|
25
|
+
else
|
26
|
+
super
|
27
|
+
end
|
28
|
+
end
|
18
29
|
end
|
19
30
|
end
|
@@ -4,6 +4,7 @@ module Bootdisk::HostsControllerExt
|
|
4
4
|
included do
|
5
5
|
alias_method :find_by_name_bootiso, :find_by_name
|
6
6
|
before_filter :find_by_name_bootiso, :only => %w[bootdisk_iso]
|
7
|
+
alias_method_chain :current_permission, :bootdisk if method_defined?(:current_permission)
|
7
8
|
end
|
8
9
|
|
9
10
|
def bootdisk_iso
|
@@ -19,4 +20,12 @@ module Bootdisk::HostsControllerExt
|
|
19
20
|
send_data File.read(iso), :filename => "#{@host.name}.iso"
|
20
21
|
end
|
21
22
|
end
|
23
|
+
|
24
|
+
def current_permission_with_bootdisk
|
25
|
+
if params[:action] == 'bootdisk_iso'
|
26
|
+
'download_bootdisk'
|
27
|
+
else
|
28
|
+
current_permission_without_bootdisk
|
29
|
+
end
|
30
|
+
end
|
22
31
|
end
|
data/lib/bootdisk/version.rb
CHANGED
data/lib/tasks/bootdisk.rake
CHANGED
@@ -17,7 +17,7 @@ namespace :bootdisk do
|
|
17
17
|
tmpl = Bootdisk::Renderer.new.generic_template_render
|
18
18
|
|
19
19
|
Bootdisk::ISOGenerator.new(tmpl).generate do |image|
|
20
|
-
output = ENV['OUTPUT'] || "bootdisk_#{Setting[:foreman_url]}.iso"
|
20
|
+
output = ENV['OUTPUT'] || "bootdisk_#{URI.parse(Setting[:foreman_url]).host}.iso"
|
21
21
|
FileUtils.cp image, output
|
22
22
|
puts "Wrote #{output}"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_bootdisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominic Cleal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Plugin for Foreman that creates iPXE-based boot disks to provision hosts
|
14
14
|
without the need for PXE infrastructure.
|