foreman_rescue 5.0.0 → 5.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd45138c63c9ba95c38d04d10adfefdc3559c73dfd73b42f7ebcc3788fb727b7
4
- data.tar.gz: 8de3698b0905932213fd9217b82083c52b642886a2a08da47ce7a449caab4d83
3
+ metadata.gz: '056686d37786da37f4c4dad82382e4934bdf800a3219d5865480468d7da931e4'
4
+ data.tar.gz: 54d533f18caded8b753e2603219ac1d7d5b9039c08211c9f325190f68e218e95
5
5
  SHA512:
6
- metadata.gz: 59b4a5dcec262b3b166ef8f4cace5ba2ce94f4ce8ad41513952128a4eca6a8327a00e2c4a8ea200fbbe6ca4a714242497850af6ebaf06004f1a55c193df358ae
7
- data.tar.gz: 6d091efc235c1a01d40e6e068af5f53fe0542e90c46559f6ed97bbf5e33dca670ea4fc9f259596b5f7ff0c2cf3363699f3ed3acca4a2a76d588c6a9b9b917fb5
6
+ metadata.gz: 8b0e8bc5397186656746ff56e6b9d171610fda4b03542e10158dfec371d673662e9edc5bfc5bbb38829b68340d2edf7bdbb6a795a6f8732a57140173e33e5548
7
+ data.tar.gz: 4fe0ecdcdfa1f0666df12eee77d2d7ea204fc7c3c6468a6f469127d78345a94845744a843e71dc6b28dfabe5ceb3c5a8f0430acda332bbd62ba60b76ec06ad7d
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ class RemoveRescuePxegrubSetting < ActiveRecord::Migration[7.0]
4
+ class MigrationSettings < ApplicationRecord
5
+ self.table_name = :settings
6
+ end
7
+
8
+ def up
9
+ MigrationSettings.where(name: 'rescue_pxegrub_tftp_template').delete_all
10
+ end
11
+
12
+ def down
13
+ # no-op: the setting is re-created by plugin registration on boot if re-added
14
+ end
15
+ end
@@ -11,9 +11,9 @@ module ForemanRescue
11
11
  end
12
12
  end
13
13
 
14
- initializer 'foreman_rescue.register_plugin', :before => :finisher_hook do |app| # rubocop:disable Metrics/BlockLength
15
- app.reloader.to_prepare do # rubocop:disable Metrics/BlockLength
16
- Foreman::Plugin.register :foreman_rescue do # rubocop:disable Metrics/BlockLength
14
+ initializer 'foreman_rescue.register_plugin', :before => :finisher_hook do |app|
15
+ app.reloader.to_prepare do
16
+ Foreman::Plugin.register :foreman_rescue do
17
17
  requires_foreman '>= 3.13'
18
18
 
19
19
  settings do
@@ -25,13 +25,6 @@ module ForemanRescue
25
25
  description: N_('PXELinux template used when booting rescue system'),
26
26
  collection: proc { ProvisioningTemplate.templates_by_kind('PXELinux') })
27
27
 
28
- setting('rescue_pxegrub_tftp_template',
29
- type: :string,
30
- default: '',
31
- full_name: N_('PXEGrub rescue template'),
32
- description: N_('PXEGrub template used when booting rescue system'),
33
- collection: proc { ProvisioningTemplate.templates_by_kind('PXEGrub') })
34
-
35
28
  setting('rescue_pxegrub2_tftp_template',
36
29
  type: :string,
37
30
  default: '',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanRescue
4
- VERSION = '5.0.0'
4
+ VERSION = '5.1.0'
5
5
  end
@@ -51,7 +51,6 @@ class HostTest < ActiveSupport::TestCase
51
51
  tasks = host.queue.all.map(&:name)
52
52
  assert_includes tasks, "Deploy TFTP PXEGrub2 config for #{host}"
53
53
  assert_includes tasks, "Deploy TFTP PXELinux config for #{host}"
54
- assert_includes tasks, "Deploy TFTP PXEGrub config for #{host}"
55
54
  end
56
55
 
57
56
  test 'should deploy rescue template' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_rescue
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timo Goebel
@@ -57,6 +57,7 @@ files:
57
57
  - config/routes.rb
58
58
  - db/migrate/20170901131321_add_rescue_mode_to_host.foreman_rescue.rb
59
59
  - db/migrate/20240506132712_migrate_rescue_settings_category_to_dsl.rb
60
+ - db/migrate/20260617091723_remove_rescue_pxegrub_setting.rb
60
61
  - db/seeds.d/103-provisioning_templates.rb
61
62
  - lib/foreman_rescue.rb
62
63
  - lib/foreman_rescue/engine.rb
@@ -94,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
95
  - !ruby/object:Gem::Version
95
96
  version: '0'
96
97
  requirements: []
97
- rubygems_version: 3.6.7
98
+ rubygems_version: 4.0.10
98
99
  specification_version: 4
99
100
  summary: Provides the ability to boot a host into a rescue system.
100
101
  test_files: