foreman_setup 6.0.0 → 7.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 +5 -5
- data/CHANGES.md +3 -0
- data/README.md +1 -0
- data/app/controllers/foreman_setup/provisioners_controller.rb +2 -1
- data/app/models/foreman_setup/provisioner.rb +1 -0
- data/lib/foreman_setup/engine.rb +1 -1
- data/lib/foreman_setup/version.rb +1 -1
- data/test/factories/provisioners.rb +1 -1
- data/test/functional/foreman_setup/provisioners_controller_test.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: cf791e14cabce0aad637e2b8942fe65d0f9ebd9dcef902d7abd3c58f44074f5b
|
4
|
+
data.tar.gz: 1eb0e6aedd25d7162c0bcdabe78fe45708bca1d60ab4b8e9236f2ed3f9c2610f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ccd7f476e7f02bba5bc5117cd91e95039aa12f954c81851ecc5dec58764e11f1eaa7e4371b40a85ce5e0ca864dcc4642c5f3f906933dc6be5b783de84c07bc6
|
7
|
+
data.tar.gz: ddf4305c96e77dccd214861e5ccd423299b688079c080b8bdb06d19ba4d50942d3d94619a8f707c6c47341efc44a0905c64fff669ec3ea744e291349a58e72b8
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
@@ -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
|
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
|
data/lib/foreman_setup/engine.rb
CHANGED
@@ -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.
|
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'),
|
@@ -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,
|
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:
|
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:
|
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:
|
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
|
-
|
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
|