foreman_setup 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: 108b7d028caf95892e9856dd30375168c0c9ae16
4
- data.tar.gz: ba67990cf75080f773c8dbef65e9032979d02577
3
+ metadata.gz: da5e328806b88cd3747ffbc70cae928ce9c5c8b2
4
+ data.tar.gz: e9e716397bd1c04ebfa7264dc4a18000d84b2211
5
5
  SHA512:
6
- metadata.gz: fedee3f1c689216802fead638c898245f7e402bc9e8d9b650f8f162400db04e287038aa8d8abd2410fb6629e0109ab85c61b9fb0806fcf74c0ce001983367e27
7
- data.tar.gz: e2ff682c30a5fbb28aeb1669475df93e50eab3c048c9675b901c1d722ab7bbe12bbb411251d41613a914f0b5cb8cb21d32cc753dc36357a1c645db7af89d2c92
6
+ metadata.gz: eddc32856664befabe4461e7e6abc8fc70727daababd8d65c022067df211674ad6123bf2ebb05647c1eba923ee8be16ea12660e72108bab80a18b07a5765e66b
7
+ data.tar.gz: 7f3c04ade6e8c10a592492334c40eb9d496c7748e63a640b544c5e1bb548dc290142223a44b4e3a3b1d25adf6114b8a6eb40fbba73191e96c5592ac45e5e9fb9
data/CHANGES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.0.4
4
+ * further Foreman 1.4 fixes, template renames and CSS
5
+
3
6
  ## v1.0.3
4
7
  * fix Foreman 1.4 compatibility
5
8
  * add basic role and permission under Foreman 1.4
@@ -147,17 +147,19 @@ module ForemanSetup
147
147
  end
148
148
 
149
149
  # Associate templates with OS and vice-versa
150
+ foreman14 = SETTINGS[:version].is_a? Foreman::Version
150
151
  if @provisioner.host.os.family == 'Redhat'
151
152
  tmpl_name = 'Kickstart'
152
153
  provision_tmpl_name = @provisioner.host.os.name == 'Redhat' ? 'RHEL Kickstart' : tmpl_name
153
- gpxe_tmpl_name = 'Kickstart'
154
- ptable_name = 'RedHat default'
154
+ ipxe_tmpl_name = 'Kickstart'
155
+ ptable_name = foreman14 ? 'Kickstart default' : 'RedHat default'
155
156
  elsif @provisioner.host.os.family == 'Debian'
156
157
  tmpl_name = provision_tmpl_name = 'Preseed'
157
- ptable_name = 'Ubuntu default'
158
+ ptable_name = foreman14 ? 'Preseed default' : 'Ubuntu default'
158
159
  end
159
160
 
160
- {'provision' => provision_tmpl_name, 'PXELinux' => tmpl_name, 'gPXE' => gpxe_tmpl_name}.each do |kind_name, tmpl_name|
161
+ ipxe_kind = foreman14 ? 'iPXE' : 'gPXE'
162
+ {'provision' => provision_tmpl_name, 'PXELinux' => tmpl_name, ipxe_kind => ipxe_tmpl_name}.each do |kind_name, tmpl_name|
161
163
  next if tmpl_name.blank?
162
164
  kind = TemplateKind.find_by_name(kind_name)
163
165
  tmpls = ConfigTemplate.where('name LIKE ?', "#{tmpl_name}%").where(:template_kind_id => kind.id)
@@ -15,8 +15,8 @@
15
15
  <h4><%= _("Next steps") %></h4>
16
16
 
17
17
  <%= option_button _("New Host"), new_host_path, :class => 'btn btn-success', :help_inline => _("Create and provision a new host") %>
18
- <%= option_button _("Compute Resources"), compute_resources_path, :class => 'btn', :help_inline => _("Add and manage compute resources (virtualization and cloud)") %>
19
- <%= option_button _("Edit Host Group"), edit_hostgroup_path(@provisioner.hostgroup), :class => 'btn', :help_inline => _("Review and edit the host group set up by the provisioning wizard") %>
20
- <%= option_button _("Provisioning Setup"), foreman_setup_provisioners_path, :class => 'btn', :help_inline => _("Return to the main provisioning setup page") %>
18
+ <%= option_button _("Compute Resources"), compute_resources_path, :class => 'btn btn-default', :help_inline => _("Add and manage compute resources (virtualization and cloud)") %>
19
+ <%= option_button _("Edit Host Group"), edit_hostgroup_path(@provisioner.hostgroup), :class => 'btn btn-default', :help_inline => _("Review and edit the host group set up by the provisioning wizard") %>
20
+ <%= option_button _("Provisioning Setup"), foreman_setup_provisioners_path, :class => 'btn btn-default', :help_inline => _("Return to the main provisioning setup page") %>
21
21
 
22
22
  </div>
@@ -1,3 +1,3 @@
1
1
  module ForemanSetup
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_setup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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-01-28 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - <
17
+ - - "<"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - <
24
+ - - "<"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  description: Plugin for Foreman that helps set up provisioning.
@@ -72,17 +72,17 @@ require_paths:
72
72
  - lib
73
73
  required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.1.11
85
+ rubygems_version: 2.2.1
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Helps set up Foreman for provisioning