foreman_bootdisk 10.0.2 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +9 -4
  3. data/README.md +2 -0
  4. data/app/controllers/foreman_bootdisk/disks_controller.rb +3 -3
  5. data/app/helpers/concerns/foreman_bootdisk/hosts_helper_ext.rb +2 -8
  6. data/app/models/concerns/foreman_bootdisk/compute_resources/vmware.rb +4 -11
  7. data/app/models/concerns/foreman_bootdisk/host_ext.rb +4 -15
  8. data/app/models/setting/bootdisk.rb +1 -1
  9. data/app/services/foreman_bootdisk/iso_generator.rb +4 -1
  10. data/app/services/foreman_bootdisk/renderer.rb +2 -2
  11. data/app/services/foreman_bootdisk/renderer_methods.rb +6 -2
  12. data/db/migrate/20130914211030_create_host_bootdisk_template.rb +1 -1
  13. data/db/migrate/20130915104500_edit_host_bootdisk_template_multinic.rb +1 -1
  14. data/db/migrate/20130915133321_create_kickstart_bootdisk_template.rb +1 -1
  15. data/db/migrate/20130915201457_create_generic_host_bootdisk_template.rb +1 -1
  16. data/db/migrate/20131021095100_edit_host_bootdisk_template_dns_secondary.rb +1 -1
  17. data/db/migrate/20140522185700_change_templatekind_to_bootdisk.rb +2 -2
  18. data/db/migrate/20171009225200_remove_duplicate_bootdisk_templates.rb +1 -1
  19. data/lib/foreman_bootdisk/engine.rb +5 -5
  20. data/lib/foreman_bootdisk/version.rb +1 -1
  21. data/locale/foreman_bootdisk.pot +2 -10
  22. data/test/functional/foreman_bootdisk/api/v2/disks_controller_test.rb +3 -3
  23. data/test/functional/foreman_bootdisk/api/v2/subnet_disks_controller_test.rb +1 -1
  24. data/test/functional/foreman_bootdisk/disks_controller_test.rb +6 -6
  25. data/test/unit/iso_generator_test.rb +2 -3
  26. metadata +3 -4
  27. data/app/controllers/concerns/foreman_bootdisk/unattended_controller_ext.rb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e1f729480f6663624d1fb96b994a381e9926c1d99f7239d02fca9a376d6ccaa
4
- data.tar.gz: e94de3dd4d1dd78abac381ca057e6da44a42e0a5f9b5afbd493c29ce6310861a
3
+ metadata.gz: 208b518a4b2d0978e4ef072aab241305e16b327e4709f6bad1cfee39ffc7b85a
4
+ data.tar.gz: 758b6cba3dbeef8c95862aac8b4ded56c25e4d52224e15d962c538502baaec96
5
5
  SHA512:
6
- metadata.gz: 15348dcc0e22146f014239eae49e90a0e4fd95050d44c42cab4ee461e165ea63f407b797c70001c49180d36c0fef47ca166aa01e26253d08ca2412b3cbeac7b0
7
- data.tar.gz: b3f5b11e82ed73e2d0c7373f61af61fd1b861c45e2399b02e010399d24139d89ded5ecaae5663d17b19fec370e9ccec592e3dff2734f2431c9f493291ad965a5
6
+ metadata.gz: 98b20bf6e7304aeae69d1bc5244681fea14b2d60e8d4ab32e0f6990c5f47c9985d96d1d1491188336a84ba42d25629ce3cfe74f0cbe6e6b4a0c5525fdd8e5e21
7
+ data.tar.gz: eb3b37f7b7846aeb5d4179fe5f0bb74183aa48376494c6dcf9aad05d8f8dd7767b38d5ebda1cbf7d9c2479fe8b5e4957a9df74b9d440ff46c8da4e482af535e0
data/CHANGES.md CHANGED
@@ -1,12 +1,17 @@
1
1
  # Changelog
2
2
 
3
- ## v10.0.2
3
+ ## v12.0.0
4
+ * fixed subnet image token stub (#22428)
5
+ * moved MAC based identification to Foreman core (#22858)
6
+ * bootdisk_raise fixed for host context (#22482)
7
+ * fixed nil exception with PXELinux template (#23267)
8
+
9
+ ## v11.0.0
4
10
  * bootdisk_raise template marco works in preview mode (#22136)
5
11
  * host image works with subnet without gateway (#21106)
6
-
7
- ## v10.0.1
8
12
  * Fix rake tasks are Taxonomy and User aware (#21877)
9
- * Revert alias_method_chain with Module#prepend for Katello 3.4 compatibility
13
+ * database migrations support rails 5 (#21821)
14
+ * changes to support rails 5.1
10
15
 
11
16
  ## v10.0.0
12
17
  * retry vmware iso boot 10 times before giving up (#19013)
data/README.md CHANGED
@@ -45,6 +45,8 @@ gPXE images are unsupported due to lack of initrd support.
45
45
  | >= 1.12 | ~> 8.0 |
46
46
  | >= 1.13 | ~> 9.0 |
47
47
  | >= 1.15 | ~> 10.0 |
48
+ | >= 1.17 | ~> 11.0 |
49
+ | >= 1.18 | ~> 12.0 |
48
50
 
49
51
  # Usage
50
52
 
@@ -9,7 +9,7 @@ module ForemanBootdisk
9
9
  tmpl = ForemanBootdisk::Renderer.new.generic_template_render
10
10
  rescue => e
11
11
  error_rendering(e)
12
- redirect_to :back
12
+ redirect_back(fallback_location: '/')
13
13
  return
14
14
  end
15
15
 
@@ -24,7 +24,7 @@ module ForemanBootdisk
24
24
  tmpl = host.bootdisk_template_render
25
25
  rescue => e
26
26
  error_rendering(e)
27
- redirect_to :back
27
+ redirect_back(fallback_location: '/')
28
28
  return
29
29
  end
30
30
 
@@ -48,7 +48,7 @@ module ForemanBootdisk
48
48
  tmpl = ForemanBootdisk::Renderer.new.generic_template_render(subnet)
49
49
  rescue => e
50
50
  error_rendering(e)
51
- redirect_to :back
51
+ redirect_back(fallback_location: '/')
52
52
  return
53
53
  end
54
54
 
@@ -1,11 +1,5 @@
1
1
  module ForemanBootdisk::HostsHelperExt
2
- extend ActiveSupport::Concern
3
-
4
- included do
5
- alias_method_chain :host_title_actions, :bootdisk
6
- end
7
-
8
- def host_title_actions_with_bootdisk(*args)
2
+ def host_title_actions(*args)
9
3
  if @host.bootdisk_downloadable?
10
4
  title_actions(
11
5
  button_group(
@@ -24,7 +18,7 @@ module ForemanBootdisk::HostsHelperExt
24
18
  bootdisk_button_disabled
25
19
  end
26
20
 
27
- host_title_actions_without_bootdisk(*args)
21
+ super
28
22
  end
29
23
 
30
24
  def bootdisk_button_disabled
@@ -1,19 +1,12 @@
1
1
  module ForemanBootdisk
2
2
  module ComputeResources
3
3
  module Vmware
4
- extend ActiveSupport::Concern
5
-
6
- included do
7
- alias_method_chain :capabilities, :bootdisk
8
- alias_method_chain :parse_args, :bootdisk
9
- end
10
-
11
- def capabilities_with_bootdisk
12
- capabilities_without_bootdisk + [:bootdisk]
4
+ def capabilities
5
+ super + [:bootdisk]
13
6
  end
14
7
 
15
- def parse_args_with_bootdisk(args = {})
16
- args = parse_args_without_bootdisk args
8
+ def parse_args(args = {})
9
+ args = super
17
10
  if args[:provision_method] == 'bootdisk'
18
11
  args[:cdroms] = [new_cdrom]
19
12
  args[:boot_order] = ['cdrom', 'disk']
@@ -1,13 +1,6 @@
1
1
  require 'uri'
2
2
 
3
3
  module ForemanBootdisk::HostExt
4
- extend ActiveSupport::Concern
5
-
6
- included do
7
- alias_method_chain :validate_media?, :bootdisk
8
- alias_method_chain :can_be_built?, :bootdisk
9
- end
10
-
11
4
  def bootdisk_template
12
5
  ProvisioningTemplate.unscoped.find_by_name(Setting[:bootdisk_host_template]) || raise(::Foreman::Exception.new(N_('Unable to find template specified by %s setting'), 'bootdisk_host_template'))
13
6
  end
@@ -17,10 +10,6 @@ module ForemanBootdisk::HostExt
17
10
  unattended_render(bootdisk_template.template)
18
11
  end
19
12
 
20
- def bootdisk_chain_url(mac = self.mac, action = 'iPXE')
21
- ForemanBootdisk::Renderer.format_bootdisk_chain_url(foreman_url(action), mac)
22
- end
23
-
24
13
  def bootdisk_build?
25
14
  provision_method == 'bootdisk'
26
15
  end
@@ -37,11 +26,11 @@ module ForemanBootdisk::HostExt
37
26
  /i.86|x86[_-]64/ =~ architecture.name
38
27
  end
39
28
 
40
- def validate_media_with_bootdisk?
41
- validate_media_without_bootdisk? || (managed && bootdisk_build? && build?)
29
+ def validate_media?
30
+ super || (managed && bootdisk_build? && build?)
42
31
  end
43
32
 
44
- def can_be_built_with_bootdisk?
45
- can_be_built_without_bootdisk? || (managed? and SETTINGS[:unattended] and bootdisk_build? and !build?)
33
+ def can_be_built?
34
+ super || (managed? and SETTINGS[:unattended] and bootdisk_build? and !build?)
46
35
  end
47
36
  end
@@ -1,6 +1,6 @@
1
1
  class Setting::Bootdisk< ::Setting
2
2
  def self.load_defaults
3
- return unless ActiveRecord::Base.connection.table_exists?('settings')
3
+ return unless ApplicationRecord.connection.table_exists?('settings')
4
4
  return unless super
5
5
 
6
6
  ipxe = ['/usr/lib/ipxe'].find { |p| File.exist?(p) } || '/usr/share/ipxe'
@@ -11,7 +11,10 @@ class ForemanBootdisk::ISOGenerator
11
11
  raise ::Foreman::Exception.new(N_('Host is not in build mode, so the template cannot be rendered')) unless host.build?
12
12
 
13
13
  tmpl = host.send(:generate_pxe_template, :PXELinux)
14
- raise ::Foreman::Exception.new(N_('Unable to generate disk template: %s'), host.errors.full_messages.to_sentence) if tmpl == false
14
+ unless tmpl
15
+ err = host.errors.full_messages.to_sentence
16
+ raise ::Foreman::Exception.new(N_('Unable to generate disk template, PXELinux template not found or: %s'), err)
17
+ end
15
18
 
16
19
  # pxe_files and filename conversion is utterly bizarre
17
20
  # aim to convert filenames to something usable under ISO 9660, update the template to match
@@ -13,9 +13,9 @@ module ForemanBootdisk
13
13
  if subnet.present?
14
14
  # rendering a subnet-level bootdisk requires tricking the renderer into thinking it has a
15
15
  # valid host, with a token, and with a tftp proxy
16
- @host = Struct.new(:token, :subnet).new(
16
+ @host = Struct.new(:token, :provision_interface).new(
17
17
  Struct.new(:value).new('faketoken'),
18
- subnet
18
+ Struct.new(:subnet).new(subnet)
19
19
  )
20
20
  else
21
21
  @host = Struct.new(:token, :subnet).new(nil,nil)
@@ -10,14 +10,18 @@ module ForemanBootdisk
10
10
  u.fragment = nil
11
11
  u.to_s
12
12
  end
13
+
14
+ def bootdisk_raise(*args)
15
+ raise ::Foreman::Exception.new(*args)
16
+ end
13
17
  end
14
18
 
15
- def bootdisk_chain_url(mac = '', action = 'iPXE')
19
+ def bootdisk_chain_url(mac = self.try(:mac), action = 'iPXE')
16
20
  self.class.format_bootdisk_chain_url(foreman_url(action), mac)
17
21
  end
18
22
 
19
23
  def bootdisk_raise(*args)
20
- raise ::Foreman::Exception.new(*args)
24
+ self.class.bootdisk_raise(*args)
21
25
  end
22
26
  end
23
27
  end
@@ -1,4 +1,4 @@
1
- class CreateHostBootdiskTemplate < ActiveRecord::Migration
1
+ class CreateHostBootdiskTemplate < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  end
4
4
 
@@ -1,4 +1,4 @@
1
- class EditHostBootdiskTemplateMultinic < ActiveRecord::Migration
1
+ class EditHostBootdiskTemplateMultinic < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  end
4
4
 
@@ -1,4 +1,4 @@
1
- class CreateKickstartBootdiskTemplate < ActiveRecord::Migration
1
+ class CreateKickstartBootdiskTemplate < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  end
4
4
 
@@ -1,4 +1,4 @@
1
- class CreateGenericHostBootdiskTemplate < ActiveRecord::Migration
1
+ class CreateGenericHostBootdiskTemplate < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  end
4
4
 
@@ -1,4 +1,4 @@
1
- class EditHostBootdiskTemplateDnsSecondary < ActiveRecord::Migration
1
+ class EditHostBootdiskTemplateDnsSecondary < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  end
4
4
 
@@ -1,5 +1,5 @@
1
- class ChangeTemplatekindToBootdisk < ActiveRecord::Migration
2
- class FakeConfigTemplate < ActiveRecord::Base
1
+ class ChangeTemplatekindToBootdisk < ActiveRecord::Migration[4.2]
2
+ class FakeConfigTemplate < ApplicationRecord
3
3
  if ActiveRecord::Migrator.get_all_versions.include?(20150514072626)
4
4
  self.table_name = 'templates'
5
5
  else
@@ -1,4 +1,4 @@
1
- class RemoveDuplicateBootdiskTemplates < ActiveRecord::Migration
1
+ class RemoveDuplicateBootdiskTemplates < ActiveRecord::Migration[4.2]
2
2
  def up
3
3
  template_names = ['Boot disk iPXE - host', 'Boot disk iPXE - generic host']
4
4
  template_names.each do |template_name|
@@ -48,7 +48,7 @@ module ForemanBootdisk
48
48
 
49
49
  initializer 'foreman_bootdisk.register_plugin', :before => :finisher_hook do |app|
50
50
  Foreman::Plugin.register :foreman_bootdisk do
51
- requires_foreman '>= 1.15'
51
+ requires_foreman '>= 1.18'
52
52
 
53
53
  security_block :bootdisk do |map|
54
54
  permission :download_bootdisk, {:'foreman_bootdisk/disks' => [:generic, :host, :full_host, :subnet, :help],
@@ -76,11 +76,11 @@ module ForemanBootdisk
76
76
 
77
77
  config.to_prepare do
78
78
  begin
79
- Host::Managed.send(:include, ForemanBootdisk::HostExt)
79
+ Host::Managed.send(:prepend, ForemanBootdisk::HostExt)
80
+ Host::Managed.send(:include, ForemanBootdisk::RendererMethods)
80
81
  Host::Managed.send(:include, ForemanBootdisk::Orchestration::Compute) if SETTINGS[:unattended]
81
- HostsHelper.send(:include, ForemanBootdisk::HostsHelperExt)
82
- UnattendedController.send(:include, ForemanBootdisk::UnattendedControllerExt)
83
- Foreman::Model::Vmware.send(:include, ForemanBootdisk::ComputeResources::Vmware) if Foreman::Model::Vmware.available?
82
+ HostsHelper.send(:prepend, ForemanBootdisk::HostsHelperExt)
83
+ Foreman::Model::Vmware.send(:prepend, ForemanBootdisk::ComputeResources::Vmware) if Foreman::Model::Vmware.available?
84
84
  rescue => e
85
85
  puts "#{ForemanBootdisk::ENGINE_NAME}: skipping engine hook (#{e.to_s})"
86
86
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanBootdisk
2
- VERSION = '10.0.2'
2
+ VERSION = '12.0.0'
3
3
  end
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_bootdisk 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2017-12-01 14:36-0500\n"
12
- "PO-Revision-Date: 2017-12-01 14:36-0500\n"
11
+ "POT-Creation-Date: 2018-03-12 12:56-0400\n"
12
+ "PO-Revision-Date: 2018-03-12 12:56-0400\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -289,14 +289,6 @@ msgstr ""
289
289
  msgid "Host has no domain defined"
290
290
  msgstr ""
291
291
 
292
- #: ../app/views/foreman_bootdisk/host.erb:13
293
- msgid "Subnet (%s) has no gateway defined"
294
- msgstr ""
295
-
296
- #: ../app/views/foreman_bootdisk/host.erb:14
297
- msgid "Subnet (%s) has no primary DNS server defined"
298
- msgstr ""
299
-
300
292
  #: ../lib/foreman_bootdisk/engine.rb:65
301
293
  msgid "Boot disk based"
302
294
  msgstr ""
@@ -7,7 +7,7 @@ class ForemanBootdisk::Api::V2::DisksControllerTest < ActionController::TestCase
7
7
  test "should generate generic image" do
8
8
  ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk generic host template/))).yields("temp ISO")
9
9
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
10
- get :generic, {}
10
+ get :generic
11
11
  assert_response :success
12
12
  assert_equal "ISO image", @response.body
13
13
  end
@@ -19,7 +19,7 @@ class ForemanBootdisk::Api::V2::DisksControllerTest < ActionController::TestCase
19
19
  test "should generate host image" do
20
20
  ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk host template/))).yields("temp ISO")
21
21
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
22
- get :host, {:id => @host.name}
22
+ get :host, params: {:id => @host.name}
23
23
  assert_response :success
24
24
  assert_equal "ISO image", @response.body
25
25
  end
@@ -27,7 +27,7 @@ class ForemanBootdisk::Api::V2::DisksControllerTest < ActionController::TestCase
27
27
  test "should generate full host image" do
28
28
  ForemanBootdisk::ISOGenerator.expects(:generate_full_host).with(@host).yields("temp ISO")
29
29
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
30
- get :host, {:id => @host.name, :full => true}
30
+ get :host, params: {:id => @host.name, :full => true}
31
31
  assert_response :success
32
32
  assert_equal "ISO image", @response.body
33
33
  end
@@ -14,7 +14,7 @@ class ForemanBootdisk::Api::V2::SubnetDisksControllerTest < ActionController::Te
14
14
  ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk generic host template/))).yields("temp ISO")
15
15
  ForemanBootdisk::Renderer.any_instance.stubs(:bootdisk_chain_url).yields("http://smart-proxy.lan")
16
16
  File.expects(:read).with("temp ISO").returns("ISO image")
17
- get :subnet, {:id => @host.subnet.id}
17
+ get :subnet, params: {:id => @host.subnet.id}
18
18
  assert_response :success
19
19
  assert_equal "ISO image", @response.body
20
20
  end
@@ -7,7 +7,7 @@ class ForemanBootdisk::DisksControllerTest < ActionController::TestCase
7
7
  test "should generate generic image" do
8
8
  ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk generic host template/))).yields("temp ISO")
9
9
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
10
- get :generic, {}, set_session_user
10
+ get :generic, session: set_session_user
11
11
  assert_response :success
12
12
  assert_equal "ISO image", @response.body
13
13
  end
@@ -21,7 +21,7 @@ class ForemanBootdisk::DisksControllerTest < ActionController::TestCase
21
21
  test "should generate host image" do
22
22
  ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk host template/))).yields("temp ISO")
23
23
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
24
- get :host, {:id => @host.name}, set_session_user
24
+ get :host, params: {:id => @host.name}, session: set_session_user
25
25
  assert_response :success
26
26
  assert_equal "ISO image", @response.body
27
27
  end
@@ -29,7 +29,7 @@ class ForemanBootdisk::DisksControllerTest < ActionController::TestCase
29
29
  test "should generate full host image" do
30
30
  ForemanBootdisk::ISOGenerator.expects(:generate_full_host).with(@host).yields("temp ISO")
31
31
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
32
- get :full_host, {:id => @host.name}, set_session_user
32
+ get :full_host, params: {:id => @host.name}, session: set_session_user
33
33
  assert_response :success
34
34
  assert_equal "ISO image", @response.body
35
35
  end
@@ -38,7 +38,7 @@ class ForemanBootdisk::DisksControllerTest < ActionController::TestCase
38
38
  ForemanBootdisk::ISOGenerator.expects(:generate).with(has_entry(:ipxe => regexp_matches(/disk generic host template/))).yields("temp ISO")
39
39
  ForemanBootdisk::Renderer.any_instance.stubs(:bootdisk_chain_url).yields("http://smart-proxy.lan")
40
40
  @controller.expects(:read_file).with("temp ISO").returns("ISO image")
41
- get :subnet, {:id => @host.name}, set_session_user
41
+ get :subnet, params: {:id => @host.name}, session: set_session_user
42
42
  assert_empty flash[:error]
43
43
  assert_response :success
44
44
  assert_equal "ISO image", @response.body
@@ -52,14 +52,14 @@ class ForemanBootdisk::DisksControllerTest < ActionController::TestCase
52
52
  setup :setup_host
53
53
 
54
54
  test "should not generate subnet image" do
55
- get :subnet, {:id => @host.name}, set_session_user
55
+ get :subnet, params: {:id => @host.name}, session: set_session_user
56
56
  assert_match(/Failed.*: TFTP feature not enabled/, flash[:error])
57
57
  assert_response :redirect
58
58
  end
59
59
  end
60
60
 
61
61
  test "should render help" do
62
- get :help, {}, set_session_user
62
+ get :help, session: set_session_user
63
63
  assert_response :success
64
64
  end
65
65
  end
@@ -40,10 +40,9 @@ class ForemanBootdisk::IsoGeneratorTest < ActiveSupport::TestCase
40
40
  end
41
41
 
42
42
  test "full host image generation generates via PXELinux type" do
43
+ @host.expects(:generate_pxe_template).with(:PXELinux).returns("Template")
43
44
  @host.operatingsystem.expects(:pxe_files).returns([])
44
- @host.operatingsystem.expects(:kernel).returns("kernel")
45
- @host.operatingsystem.expects(:initrd).returns("initrd")
46
- ForemanBootdisk::ISOGenerator.expects(:generate).with({:isolinux => nil, :files => []}, anything)
45
+ ForemanBootdisk::ISOGenerator.expects(:generate).with({:isolinux => "Template", :files => []}, anything)
47
46
  ForemanBootdisk::ISOGenerator.generate_full_host(@host)
48
47
  end
49
48
  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: 10.0.2
4
+ version: 12.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-08 00:00:00.000000000 Z
11
+ date: 2018-05-29 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.
@@ -25,7 +25,6 @@ files:
25
25
  - LICENSE
26
26
  - README.md
27
27
  - app/assets/javascripts/foreman_bootdisk/host_edit.js
28
- - app/controllers/concerns/foreman_bootdisk/unattended_controller_ext.rb
29
28
  - app/controllers/foreman_bootdisk/api/v2/disks_controller.rb
30
29
  - app/controllers/foreman_bootdisk/api/v2/subnet_disks_controller.rb
31
30
  - app/controllers/foreman_bootdisk/disks_controller.rb
@@ -116,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
115
  version: '0'
117
116
  requirements: []
118
117
  rubyforge_project:
119
- rubygems_version: 2.7.3
118
+ rubygems_version: 2.7.6
120
119
  signing_key:
121
120
  specification_version: 4
122
121
  summary: Create boot disks to provision hosts with Foreman
@@ -1,12 +0,0 @@
1
- module ForemanBootdisk::UnattendedControllerExt
2
- extend ActiveSupport::Concern
3
-
4
- included do
5
- alias_method_chain :find_host_by_ip_or_mac, :param_mac
6
- end
7
-
8
- def find_host_by_ip_or_mac_with_param_mac
9
- request.env['HTTP_X_RHN_PROVISIONING_MAC_0'] = "unknown #{params['mac']}" unless request.env.has_key?('HTTP_X_RHN_PROVISIONING_MAC_0') || params['mac'].nil?
10
- find_host_by_ip_or_mac_without_param_mac
11
- end
12
- end