foreman_puppet 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +1 -0
- data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +1 -0
- data/lib/foreman_puppet/register.rb +4 -0
- data/lib/foreman_puppet/version.rb +1 -1
- data/test/controllers/foreman_puppet/hosts_controller_test.rb +0 -10
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25b2f6bd5e3a5584877b9859100eebbc09f4b91a1e975178b59878498a80a726
|
4
|
+
data.tar.gz: 2cd590159bc28a198036337042bca134e2fd835024738ff91cf395104eede2cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3df21f43e55f052a3e04a125d55e754db68a826e9354988eb5fe22eb6412577dd512e8218353b9deb735143db9535423ea0656cbb8b7cfb1e4e6004a1fd985d8
|
7
|
+
data.tar.gz: ef0a5f675a55cb0691fa0485e8adf68def250b385485bb10fc9cd98ed31bd8de12a2d06fb24f260a976c28f1af3c384aeacf8b07c9372e96a5314613ab5aed93
|
@@ -0,0 +1 @@
|
|
1
|
+
<td class="hidden-xs ellipsis"><%= host.environment %></td>
|
@@ -0,0 +1 @@
|
|
1
|
+
<th class="hidden-xs" width="10%"><%= sort :environment, :as => _("Puppet Environment") %></th>
|
@@ -225,4 +225,8 @@ Foreman::Plugin.register :foreman_puppet do
|
|
225
225
|
priority: 100
|
226
226
|
end
|
227
227
|
end
|
228
|
+
extend_page 'hosts/_list' do |cx|
|
229
|
+
cx.add_pagelet :hosts_table_column_header, resource_type: 'host', partial: 'hosts/foreman_puppet/form_list_env_field_header', priority: 100
|
230
|
+
cx.add_pagelet :hosts_table_column_content, resource_type: 'host', partial: 'hosts/foreman_puppet/form_list_env_field_content', priority: 100
|
231
|
+
end
|
228
232
|
end
|
@@ -289,16 +289,6 @@ module ForemanPuppet
|
|
289
289
|
assert_response :forbidden
|
290
290
|
end
|
291
291
|
|
292
|
-
test 'when "require_ssl" is true, HTTP requests should not be able to get externalNodes' do
|
293
|
-
User.current = nil
|
294
|
-
Setting[:restrict_registered_smart_proxies] = true
|
295
|
-
SETTINGS[:require_ssl] = true
|
296
|
-
|
297
|
-
Resolv.any_instance.stubs(:getnames).returns(['else.where'])
|
298
|
-
get :externalNodes, params: { name: host1.name, format: 'yml' }
|
299
|
-
assert_response :redirect
|
300
|
-
end
|
301
|
-
|
302
292
|
test 'authenticated users over HTTP should be able to get externalNodes' do
|
303
293
|
Setting[:restrict_registered_smart_proxies] = true
|
304
294
|
SETTINGS[:require_ssl] = false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Ezr
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-03-
|
12
|
+
date: 2022-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Allow assigning Puppet environments and classes to the Foreman Hosts.
|
15
15
|
email:
|
@@ -169,6 +169,8 @@ files:
|
|
169
169
|
- app/views/foreman_puppet/puppetclasses/edit.html.erb
|
170
170
|
- app/views/foreman_puppet/puppetclasses/index.html.erb
|
171
171
|
- app/views/hosts/_form_puppet_enc_tab.html.erb
|
172
|
+
- app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb
|
173
|
+
- app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb
|
172
174
|
- app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb
|
173
175
|
- app/views/hosts/select_multiple_environment.html.erb
|
174
176
|
- app/views/provisioning_templates/_combination.html.erb
|