foreman_setup 6.0.0 → 7.0.0

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
- SHA1:
3
- metadata.gz: 265e5e20854aca25723e6d136a77872a9403e619
4
- data.tar.gz: 826ed0175831b84322318168f697db596826da52
2
+ SHA256:
3
+ metadata.gz: cf791e14cabce0aad637e2b8942fe65d0f9ebd9dcef902d7abd3c58f44074f5b
4
+ data.tar.gz: 1eb0e6aedd25d7162c0bcdabe78fe45708bca1d60ab4b8e9236f2ed3f9c2610f
5
5
  SHA512:
6
- metadata.gz: b943cc4e4845b66fee1f77200f6d1d8f13706ccad09daef25e87bf00b2f91858c5f3e09a3045ec68a6be6e6b2afea214bf1e42bd4f49c4a6fb8c729281b92f81
7
- data.tar.gz: 5e9a61714ac9562814ffebf561ff8ab3e5fc9f925ce96e2ec4d89a803f99ad99dc5a4736997961aef8859a5b17aa056047eecc9c97a12604a5cf4919aa6d11e7
6
+ metadata.gz: 1ccd7f476e7f02bba5bc5117cd91e95039aa12f954c81851ecc5dec58764e11f1eaa7e4371b40a85ce5e0ca864dcc4642c5f3f906933dc6be5b783de84c07bc6
7
+ data.tar.gz: ddf4305c96e77dccd214861e5ccd423299b688079c080b8bdb06d19ba4d50942d3d94619a8f707c6c47341efc44a0905c64fff669ec3ea744e291349a58e72b8
data/CHANGES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v7.0.0
4
+ * release for Foreman 1.22 or newer
5
+
3
6
  ## v6.0.0
4
7
  * fix Foreman 1.17 compatibility with Rails 5
5
8
 
data/README.md CHANGED
@@ -26,6 +26,7 @@ RPM users can install the "tfm-rubygem-foreman_setup" or
26
26
  | >= 1.12 | ~> 4.0 |
27
27
  | >= 1.13 | ~> 5.0 |
28
28
  | >= 1.17 | ~> 6.0 |
29
+ | >= 1.22 | ~> 7.0 |
29
30
 
30
31
  # Areas this should help
31
32
 
@@ -96,7 +96,7 @@ module ForemanSetup
96
96
  url.save!
97
97
 
98
98
  # Build default PXE menu
99
- status, msg = ProvisioningTemplate.build_pxe_default(self)
99
+ status, msg = ProvisioningTemplate.build_pxe_default
100
100
  warning msg unless status == 200
101
101
 
102
102
  @provisioner.hostgroup.medium ||= @provisioner.host.os.media.first
@@ -135,6 +135,7 @@ module ForemanSetup
135
135
 
136
136
  {'provision' => provision_tmpl_name, 'PXELinux' => tmpl_name, 'iPXE' => ipxe_tmpl_name, 'finish' => finish_tmpl_name}.each do |kind_name, tmpl_name|
137
137
  next if tmpl_name.blank?
138
+
138
139
  kind = TemplateKind.find_by_name(kind_name)
139
140
  tmpls = ProvisioningTemplate.where('name LIKE ?', "#{tmpl_name}%").where(:template_kind_id => kind.id)
140
141
  tmpls.any? || raise("cannot find template for #{@provisioner.host.os}")
@@ -65,6 +65,7 @@ module ForemanSetup
65
65
  # Ensures our nested hostgroup has as much data as possible
66
66
  def populate_hostgroup
67
67
  return unless hostgroup.present?
68
+
68
69
  hostgroup.architecture_id ||= architecture.id
69
70
  hostgroup.domain_id ||= domain.id
70
71
  hostgroup.operatingsystem_id ||= operatingsystem.id
@@ -16,7 +16,7 @@ module ForemanSetup
16
16
 
17
17
  initializer 'foreman_setup.register_plugin', :before => :finisher_hook do |app|
18
18
  Foreman::Plugin.register :foreman_setup do
19
- requires_foreman '>= 1.17.0'
19
+ requires_foreman '>= 1.22.0'
20
20
 
21
21
  menu :top_menu, :provisioners, :url_hash => {:controller=> :'foreman_setup/provisioners', :action=>:index},
22
22
  :caption=> N_('Provisioning setup'),
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '6.0.0'
2
+ VERSION = '7.0.0'
3
3
  end
@@ -7,7 +7,7 @@ FactoryBot.define do
7
7
 
8
8
  # After step1, interface selection
9
9
  trait :step1 do
10
- provision_interface 'eth0'
10
+ provision_interface { 'eth0' }
11
11
  after(:create) do |prov, evaluator|
12
12
  fact = FactoryBot.create(:fact_name, :name => "ipaddress_#{prov.provision_interface}")
13
13
  FactoryBot.create(:fact_value, :fact_name => fact, :host => prov.host, :value => '192.168.1.20')
@@ -2,7 +2,7 @@ require 'test_plugin_helper'
2
2
 
3
3
  class ForemanSetup::ProvisionersControllerTest < ActionController::TestCase
4
4
  test '#index without provisioner' do
5
- get :index, headers: set_session_user
5
+ get :index, session: set_session_user
6
6
  assert_redirected_to new_foreman_setup_provisioner_path
7
7
  end
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 7.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: 2017-12-26 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for Foreman that helps set up provisioning.
14
14
  email: dcleal@redhat.com
@@ -81,7 +81,7 @@ files:
81
81
  - test/functional/foreman_setup/provisioners_controller_test.rb
82
82
  - test/test_plugin_helper.rb
83
83
  - test/unit/foreman_setup/provisioner_test.rb
84
- homepage: http://github.com/theforeman/foreman_setup
84
+ homepage: https://github.com/theforeman/foreman_setup
85
85
  licenses:
86
86
  - GPL-3
87
87
  metadata: {}
@@ -100,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubyforge_project:
104
- rubygems_version: 2.6.13
103
+ rubygems_version: 3.0.3
105
104
  signing_key:
106
105
  specification_version: 4
107
106
  summary: Helps set up Foreman for provisioning