foreman_puppet 2.0.7 → 3.0.1

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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/app/controllers/concerns/foreman_puppet/extensions/api_smart_proxies_controller.rb +7 -2
  4. data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
  5. data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +1 -1
  6. data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +1 -1
  7. data/app/views/foreman_puppet/config_groups/_config_group.html.erb +5 -1
  8. data/app/views/foreman_puppet/config_groups/index.html.erb +1 -3
  9. data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +44 -0
  10. data/db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb +1 -3
  11. data/lib/foreman_puppet/register.rb +3 -8
  12. data/lib/foreman_puppet/version.rb +1 -1
  13. data/locale/ca/LC_MESSAGES/foreman_puppet.mo +0 -0
  14. data/locale/ca/foreman_puppet.po +1 -70
  15. data/locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo +0 -0
  16. data/locale/cs_CZ/foreman_puppet.edit.po +235 -358
  17. data/locale/cs_CZ/foreman_puppet.po +2 -13
  18. data/locale/de/LC_MESSAGES/foreman_puppet.mo +0 -0
  19. data/locale/de/foreman_puppet.po +13 -25
  20. data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
  21. data/locale/en/foreman_puppet.edit.po +161 -77
  22. data/locale/en/foreman_puppet.po +1 -13
  23. data/locale/en_GB/LC_MESSAGES/foreman_puppet.mo +0 -0
  24. data/locale/en_GB/foreman_puppet.po +2 -13
  25. data/locale/es/LC_MESSAGES/foreman_puppet.mo +0 -0
  26. data/locale/es/foreman_puppet.po +2 -13
  27. data/locale/foreman_puppet.pot +25 -48
  28. data/locale/fr/LC_MESSAGES/foreman_puppet.mo +0 -0
  29. data/locale/fr/foreman_puppet.po +2 -13
  30. data/locale/gl/LC_MESSAGES/foreman_puppet.mo +0 -0
  31. data/locale/gl/foreman_puppet.po +2 -13
  32. data/locale/it/LC_MESSAGES/foreman_puppet.mo +0 -0
  33. data/locale/it/foreman_puppet.po +2 -13
  34. data/locale/ja/LC_MESSAGES/foreman_puppet.mo +0 -0
  35. data/locale/ja/foreman_puppet.po +4 -15
  36. data/locale/ko/LC_MESSAGES/foreman_puppet.mo +0 -0
  37. data/locale/ko/foreman_puppet.po +2 -13
  38. data/locale/messages.mo +0 -0
  39. data/locale/nl_NL/LC_MESSAGES/foreman_puppet.mo +0 -0
  40. data/locale/nl_NL/foreman_puppet.po +2 -13
  41. data/locale/pl/LC_MESSAGES/foreman_puppet.mo +0 -0
  42. data/locale/pl/foreman_puppet.po +2 -13
  43. data/locale/pt_BR/LC_MESSAGES/foreman_puppet.mo +0 -0
  44. data/locale/pt_BR/foreman_puppet.po +2 -13
  45. data/locale/ru/LC_MESSAGES/foreman_puppet.mo +0 -0
  46. data/locale/ru/foreman_puppet.po +4 -15
  47. data/locale/sv_SE/LC_MESSAGES/foreman_puppet.mo +0 -0
  48. data/locale/sv_SE/foreman_puppet.po +2 -13
  49. data/locale/zh_CN/LC_MESSAGES/foreman_puppet.mo +0 -0
  50. data/locale/zh_CN/foreman_puppet.po +5 -16
  51. data/locale/zh_TW/LC_MESSAGES/foreman_puppet.mo +0 -0
  52. data/locale/zh_TW/foreman_puppet.po +2 -13
  53. data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +24 -18
  54. data/test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb +2 -2
  55. data/test/controllers/foreman_puppet/environments_controller_test.rb +1 -1
  56. data/test/graphql/queries/environment_query_test.rb +4 -4
  57. data/test/graphql/queries/puppetclass_query_test.rb +4 -4
  58. data/test/integration/foreman_puppet/dashboard_js_test.rb +1 -2
  59. data/test/integration/foreman_puppet/environment_js_test.rb +1 -2
  60. data/test/integration/foreman_puppet/host_js_test.rb +17 -18
  61. data/test/integration/foreman_puppet/hostgroup_js_test.rb +1 -2
  62. data/test/integration/foreman_puppet/puppetclass_js_test.rb +1 -2
  63. data/test/integration/foreman_puppet/smartclass_parameter_js_test.rb +1 -2
  64. data/test/integration_puppet_helper.rb +3 -0
  65. data/test/models/foreman_puppet/host_puppet_facet_test.rb +2 -2
  66. data/test/models/foreman_puppet/host_test.rb +22 -22
  67. data/test/models/foreman_puppet/provisioning_template_test.rb +3 -3
  68. data/test/models/foreman_puppet/puppetclass_test.rb +1 -1
  69. data/test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb +1 -1
  70. data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +3 -3
  71. data/test/unit/foreman_puppet/template_rendering_test.rb +1 -1
  72. metadata +55 -91
  73. data/app/views/hosts/foreman_puppet/_form_list_env_field_content.html.erb +0 -1
  74. data/app/views/hosts/foreman_puppet/_form_list_env_field_header.html.erb +0 -1
  75. data/db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb +0 -9
  76. data/db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb +0 -15
  77. data/db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb +0 -8
  78. data/locale/ca/foreman_puppet.edit.po +0 -1221
  79. data/locale/ca/foreman_puppet.po.time_stamp +0 -0
  80. data/locale/de/foreman_puppet.edit.po +0 -1300
  81. data/locale/de/foreman_puppet.po.time_stamp +0 -0
  82. data/locale/en_GB/foreman_puppet.edit.po +0 -1197
  83. data/locale/en_GB/foreman_puppet.po.time_stamp +0 -0
  84. data/locale/es/foreman_puppet.edit.po +0 -1275
  85. data/locale/es/foreman_puppet.po.time_stamp +0 -0
  86. data/locale/fr/foreman_puppet.edit.po +0 -1290
  87. data/locale/fr/foreman_puppet.po.time_stamp +0 -0
  88. data/locale/gl/foreman_puppet.edit.po +0 -1203
  89. data/locale/gl/foreman_puppet.po.time_stamp +0 -0
  90. data/locale/it/foreman_puppet.edit.po +0 -1233
  91. data/locale/it/foreman_puppet.po.time_stamp +0 -0
  92. data/locale/ja/foreman_puppet.edit.po +0 -1223
  93. data/locale/ja/foreman_puppet.po.time_stamp +0 -0
  94. data/locale/ko/foreman_puppet.edit.po +0 -1197
  95. data/locale/ko/foreman_puppet.po.time_stamp +0 -0
  96. data/locale/nl_NL/foreman_puppet.edit.po +0 -1228
  97. data/locale/nl_NL/foreman_puppet.po.time_stamp +0 -0
  98. data/locale/pl/foreman_puppet.edit.po +0 -1238
  99. data/locale/pl/foreman_puppet.po.time_stamp +0 -0
  100. data/locale/pt_BR/foreman_puppet.edit.po +0 -1281
  101. data/locale/pt_BR/foreman_puppet.po.time_stamp +0 -0
  102. data/locale/ru/foreman_puppet.edit.po +0 -1240
  103. data/locale/ru/foreman_puppet.po.time_stamp +0 -0
  104. data/locale/sv_SE/foreman_puppet.edit.po +0 -1205
  105. data/locale/sv_SE/foreman_puppet.po.time_stamp +0 -0
  106. data/locale/zh_CN/foreman_puppet.edit.po +0 -1212
  107. data/locale/zh_CN/foreman_puppet.po.time_stamp +0 -0
  108. data/locale/zh_TW/foreman_puppet.edit.po +0 -1197
  109. data/locale/zh_TW/foreman_puppet.po.time_stamp +0 -0
  110. data/test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb +0 -34
@@ -107,13 +107,13 @@ module ForemanPuppet
107
107
  test 'should return empty array if host has no hostgroup' do
108
108
  host = FactoryBot.create(:host, :with_puppet_enc)
109
109
  assert_not host.hostgroup
110
- assert_equal [], host.puppet.parent_config_groups
110
+ assert_empty host.puppet.parent_config_groups
111
111
  end
112
112
 
113
113
  test 'should return empty array if hostgroup do not have puppet data' do
114
114
  hostgroup = FactoryBot.create(:hostgroup)
115
115
  host = FactoryBot.create(:host, :with_puppet_enc, hostgroup: hostgroup)
116
- assert_equal [], host.puppet.parent_config_groups
116
+ assert_empty host.puppet.parent_config_groups
117
117
  end
118
118
  end
119
119
 
@@ -4,13 +4,13 @@ module ForemanPuppet
4
4
  class HostTest < ActiveSupport::TestCase
5
5
  test 'should read the Puppetserver URL from its proxy settings' do
6
6
  host = FactoryBot.build_stubbed(:host)
7
- assert_nil host.puppet_server_uri
8
- assert_empty host.puppetmaster
7
+ expect(host.puppet_server_uri).must_be_nil
8
+ expect(host.puppetmaster).must_be_empty
9
9
 
10
10
  proxy = FactoryBot.create(:puppet_smart_proxy, url: 'https://smartproxy.example.com:8443')
11
11
  host.puppet_proxy = proxy
12
- assert_equal 'https://smartproxy.example.com:8140', host.puppet_server_uri.to_s
13
- assert_equal 'smartproxy.example.com', host.puppetmaster
12
+ expect(host.puppet_server_uri.to_s).must_equal 'https://smartproxy.example.com:8140'
13
+ expect(host.puppetmaster).must_equal 'smartproxy.example.com'
14
14
 
15
15
  features = {
16
16
  'puppet' => {
@@ -18,8 +18,8 @@ module ForemanPuppet
18
18
  },
19
19
  }
20
20
  SmartProxyFeature.import_features(proxy, features)
21
- assert_equal 'https://puppet.example.com:8140', host.puppet_server_uri.to_s
22
- assert_equal 'puppet.example.com', host.puppetmaster
21
+ expect(host.puppet_server_uri.to_s).must_equal 'https://puppet.example.com:8140'
22
+ expect(host.puppetmaster).must_equal 'puppet.example.com'
23
23
  end
24
24
 
25
25
  test 'should find smart proxy ids' do
@@ -141,12 +141,12 @@ module ForemanPuppet
141
141
  host = FactoryBot.create(:host, :with_puppet_enc, :with_config_group, :with_puppetclass, :with_parameter,
142
142
  hostgroup: hostgroup, environment: hostgroup.puppet.environment)
143
143
  copy = host.clone
144
- assert_equal host.puppet.individual_puppetclasses.map(&:id), copy.puppet.individual_puppetclasses.map(&:id)
145
- assert_equal host.puppet.classes_in_groups.map(&:id), copy.puppet.classes_in_groups.map(&:id)
146
- assert_equal host.puppet.classes.map(&:id), copy.puppet.classes.map(&:id)
147
- assert_equal host.puppet.available_puppetclasses.map(&:id), copy.puppet.available_puppetclasses.map(&:id)
148
- assert_equal host.puppet.host_classes.map(&:puppetclass_id), copy.puppet.host_classes.map(&:puppetclass_id)
149
- assert_equal host.puppet.host_config_groups.map(&:config_group_id), copy.puppet.host_config_groups.map(&:config_group_id)
144
+ expect(copy.puppet.individual_puppetclasses.map(&:id)).must_equal(host.puppet.individual_puppetclasses.map(&:id))
145
+ expect(copy.puppet.classes_in_groups.map(&:id)).must_equal(host.puppet.classes_in_groups.map(&:id))
146
+ expect(copy.puppet.classes.map(&:id)).must_equal(host.puppet.classes.map(&:id))
147
+ expect(copy.puppet.available_puppetclasses.map(&:id)).must_equal(host.puppet.available_puppetclasses.map(&:id))
148
+ expect(copy.puppet.host_classes.map(&:puppetclass_id)).must_equal(host.puppet.host_classes.map(&:puppetclass_id))
149
+ expect(copy.puppet.host_config_groups.map(&:config_group_id)).must_equal(host.puppet.host_config_groups.map(&:config_group_id))
150
150
  end
151
151
  end
152
152
 
@@ -232,20 +232,20 @@ module ForemanPuppet
232
232
  nodeinfo['parameters']['special_info'] = 'secret' # smart variable on apache
233
233
 
234
234
  info = host.info
235
- assert_includes info.keys, 'environment'
236
- assert_equal env.name, host.puppet.environment.name
237
- assert_includes info.keys, 'parameters'
238
- assert_includes info.keys, 'classes'
235
+ expect(host.puppet.environment.name).must_equal(env.name)
236
+ expect(info.keys).must_include 'environment'
237
+ expect(info.keys).must_include 'parameters'
238
+ expect(info.keys).must_include 'classes'
239
239
  # This worked in core, but it's beyond me how could have :shrug:
240
240
  # assert_equal(classes_params, info['classes'])
241
241
  # We are only importing classes in the method
242
- assert_equal(classes_params.keys.sort, info['classes'].keys.sort)
242
+ expect(info['classes'].keys.sort).must_equal(classes_params.keys.sort)
243
243
  parameters = info['parameters']
244
- assert_equal 'puppet', parameters['puppetmaster']
245
- assert_equal 'xybxa6JUkz63w', parameters['root_pw']
246
- assert_includes parameters.keys, 'foreman_subnets'
247
- assert_includes parameters.keys, 'foreman_interfaces'
248
- assert_equal '3.3.4.12', parameters['foreman_interfaces'].first['ip']
244
+ expect(parameters['puppetmaster']).must_equal 'puppet'
245
+ expect(parameters['root_pw']).must_equal 'xybxa6JUkz63w'
246
+ expect(parameters['foreman_interfaces'].first['ip']).must_equal '3.3.4.12'
247
+ expect(parameters.keys).must_include 'foreman_subnets'
248
+ expect(parameters.keys).must_include 'foreman_interfaces'
249
249
  end
250
250
 
251
251
  test 'should import from non-parameterized external nodes output' do
@@ -32,9 +32,9 @@ module ForemanPuppet
32
32
  assert tmplt.save
33
33
  end
34
34
  assert_nil tmplt.template_kind
35
- assert_equal [], tmplt.hostgroups
36
- assert_equal [], tmplt.environments
37
- assert_equal [], tmplt.template_combinations
35
+ assert_empty tmplt.hostgroups
36
+ assert_empty tmplt.environments
37
+ assert_empty tmplt.template_combinations
38
38
  end
39
39
 
40
40
  test '#template_includes adds environment include' do
@@ -17,7 +17,7 @@ module ForemanPuppet
17
17
  end
18
18
 
19
19
  test 'looking for a nonexistent host returns no puppetclasses' do
20
- assert_equal [], Puppetclass.search_for('host = imaginaryhost.nodomain.what')
20
+ assert_empty Puppetclass.search_for('host = imaginaryhost.nodomain.what')
21
21
  end
22
22
 
23
23
  test 'Puppetclass singularize from custom inflection' do
@@ -28,7 +28,7 @@ module ForemanPuppet
28
28
  end
29
29
 
30
30
  it 'does not fail without puppet facet' do
31
- assert_equal({}, cg_info.host_info)
31
+ assert_empty(cg_info.host_info)
32
32
  end
33
33
  end
34
34
  end
@@ -98,7 +98,7 @@ module ForemanPuppet
98
98
  puppetclass: puppetclass)
99
99
 
100
100
  enc = HostInfoProviders::PuppetInfo.new(@host).puppetclass_parameters
101
- assert enc[puppetclass.name][lkey.key].nil?
101
+ assert_nil enc[puppetclass.name][lkey.key]
102
102
  end
103
103
 
104
104
  test '#enc should not return class parameters when lookup_value should use puppet default' do
@@ -113,7 +113,7 @@ module ForemanPuppet
113
113
 
114
114
  enc = HostInfoProviders::PuppetInfo.new(@host).puppetclass_parameters
115
115
 
116
- assert enc[puppetclass.name][lkey.key].nil?
116
+ assert_nil enc[puppetclass.name][lkey.key]
117
117
  end
118
118
 
119
119
  test '#enc should return class parameters when default value and lookup_values should not use puppet default' do
@@ -160,7 +160,7 @@ module ForemanPuppet
160
160
 
161
161
  enc = HostInfoProviders::PuppetInfo.new(@host).puppetclass_parameters
162
162
 
163
- assert enc[puppetclass.name][key.key].nil?
163
+ assert_nil enc[puppetclass.name][key.key]
164
164
  end
165
165
 
166
166
  test '#enc should return correct merged override to host when multiple overrides for inherited hostgroups exist' do
@@ -3,7 +3,7 @@ require 'test_puppet_helper'
3
3
  module ForemanPuppet
4
4
  class TemplateRenderingTest < ActiveSupport::TestCase
5
5
  let(:host) { FactoryBot.build_stubbed(:host, :with_puppet_enc) }
6
- let(:template) { OpenStruct.new(name: 'Test', template: 'Test') }
6
+ let(:template) { stub(name: 'Test', template: 'Test') }
7
7
  let(:source) { Foreman::Renderer::Source::Database.new(template) }
8
8
  let(:scope) do
9
9
  Class.new(Foreman::Renderer::Scope::Base) do
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  - Shira Maximov
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-03 00:00:00.000000000 Z
12
+ date: 2021-12-29 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,13 +169,12 @@ 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
174
172
  - app/views/hosts/foreman_puppet/_form_main_tab_fields.html.erb
175
173
  - app/views/hosts/select_multiple_environment.html.erb
176
174
  - app/views/provisioning_templates/_combination.html.erb
177
175
  - app/views/provisioning_templates/_combinations.html.erb
178
176
  - app/views/smart_proxies/plugins/_puppet.html.erb
177
+ - app/views/smart_proxies/plugins/_puppet_ca.html.erb
179
178
  - config/api_routes.rb
180
179
  - config/initializers/api_reroute.rb
181
180
  - config/routes.rb
@@ -189,9 +188,6 @@ files:
189
188
  - db/migrate/20210924103241_remove_katello_id_from_environments.foreman_puppet.rb
190
189
  - db/migrate/20211111125003_drop_puppetclasses_direct_references.foreman_puppet.rb
191
190
  - db/migrate/20211112130803_cleanup_environment_from_core_tables.foreman_puppet.rb
192
- - db/migrate/20220201205305_migrate_host_class_permission.foreman_puppet.rb
193
- - db/migrate/20220208135305_migrate_environment_ignore_type.foreman_puppet.rb
194
- - db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
195
191
  - db/migrate_foreman/20090722141107_create_environments.foreman_puppet.rb
196
192
  - db/migrate_foreman/20090802062223_create_puppetclasses.foreman_puppet.rb
197
193
  - db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
@@ -218,81 +214,49 @@ files:
218
214
  - locale/Makefile
219
215
  - locale/action_names.rb
220
216
  - locale/ca/LC_MESSAGES/foreman_puppet.mo
221
- - locale/ca/foreman_puppet.edit.po
222
217
  - locale/ca/foreman_puppet.po
223
- - locale/ca/foreman_puppet.po.time_stamp
224
218
  - locale/cs_CZ/LC_MESSAGES/foreman_puppet.mo
225
219
  - locale/cs_CZ/foreman_puppet.edit.po
226
220
  - locale/cs_CZ/foreman_puppet.po
227
221
  - locale/cs_CZ/foreman_puppet.po.time_stamp
228
222
  - locale/de/LC_MESSAGES/foreman_puppet.mo
229
- - locale/de/foreman_puppet.edit.po
230
223
  - locale/de/foreman_puppet.po
231
- - locale/de/foreman_puppet.po.time_stamp
232
224
  - locale/en/LC_MESSAGES/foreman_puppet.mo
233
225
  - locale/en/foreman_puppet.edit.po
234
226
  - locale/en/foreman_puppet.po
235
227
  - locale/en/foreman_puppet.po.time_stamp
236
228
  - locale/en/foreman_puppet.pox
237
229
  - locale/en_GB/LC_MESSAGES/foreman_puppet.mo
238
- - locale/en_GB/foreman_puppet.edit.po
239
230
  - locale/en_GB/foreman_puppet.po
240
- - locale/en_GB/foreman_puppet.po.time_stamp
241
231
  - locale/es/LC_MESSAGES/foreman_puppet.mo
242
- - locale/es/foreman_puppet.edit.po
243
232
  - locale/es/foreman_puppet.po
244
- - locale/es/foreman_puppet.po.time_stamp
245
233
  - locale/foreman_puppet.pot
246
234
  - locale/fr/LC_MESSAGES/foreman_puppet.mo
247
- - locale/fr/foreman_puppet.edit.po
248
235
  - locale/fr/foreman_puppet.po
249
- - locale/fr/foreman_puppet.po.time_stamp
250
236
  - locale/gemspec.rb
251
237
  - locale/gl/LC_MESSAGES/foreman_puppet.mo
252
- - locale/gl/foreman_puppet.edit.po
253
238
  - locale/gl/foreman_puppet.po
254
- - locale/gl/foreman_puppet.po.time_stamp
255
239
  - locale/it/LC_MESSAGES/foreman_puppet.mo
256
- - locale/it/foreman_puppet.edit.po
257
240
  - locale/it/foreman_puppet.po
258
- - locale/it/foreman_puppet.po.time_stamp
259
241
  - locale/ja/LC_MESSAGES/foreman_puppet.mo
260
- - locale/ja/foreman_puppet.edit.po
261
242
  - locale/ja/foreman_puppet.po
262
- - locale/ja/foreman_puppet.po.time_stamp
263
243
  - locale/ko/LC_MESSAGES/foreman_puppet.mo
264
- - locale/ko/foreman_puppet.edit.po
265
244
  - locale/ko/foreman_puppet.po
266
- - locale/ko/foreman_puppet.po.time_stamp
267
245
  - locale/messages.mo
268
246
  - locale/nl_NL/LC_MESSAGES/foreman_puppet.mo
269
- - locale/nl_NL/foreman_puppet.edit.po
270
247
  - locale/nl_NL/foreman_puppet.po
271
- - locale/nl_NL/foreman_puppet.po.time_stamp
272
248
  - locale/pl/LC_MESSAGES/foreman_puppet.mo
273
- - locale/pl/foreman_puppet.edit.po
274
249
  - locale/pl/foreman_puppet.po
275
- - locale/pl/foreman_puppet.po.time_stamp
276
250
  - locale/pt_BR/LC_MESSAGES/foreman_puppet.mo
277
- - locale/pt_BR/foreman_puppet.edit.po
278
251
  - locale/pt_BR/foreman_puppet.po
279
- - locale/pt_BR/foreman_puppet.po.time_stamp
280
252
  - locale/ru/LC_MESSAGES/foreman_puppet.mo
281
- - locale/ru/foreman_puppet.edit.po
282
253
  - locale/ru/foreman_puppet.po
283
- - locale/ru/foreman_puppet.po.time_stamp
284
254
  - locale/sv_SE/LC_MESSAGES/foreman_puppet.mo
285
- - locale/sv_SE/foreman_puppet.edit.po
286
255
  - locale/sv_SE/foreman_puppet.po
287
- - locale/sv_SE/foreman_puppet.po.time_stamp
288
256
  - locale/zh_CN/LC_MESSAGES/foreman_puppet.mo
289
- - locale/zh_CN/foreman_puppet.edit.po
290
257
  - locale/zh_CN/foreman_puppet.po
291
- - locale/zh_CN/foreman_puppet.po.time_stamp
292
258
  - locale/zh_TW/LC_MESSAGES/foreman_puppet.mo
293
- - locale/zh_TW/foreman_puppet.edit.po
294
259
  - locale/zh_TW/foreman_puppet.po
295
- - locale/zh_TW/foreman_puppet.po.time_stamp
296
260
  - package.json
297
261
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
298
262
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
@@ -328,7 +292,6 @@ files:
328
292
  - test/graphql/queries/puppetclass_query_test.rb
329
293
  - test/graphql/queries/puppetclasses_query_test.rb
330
294
  - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
331
- - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
332
295
  - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
333
296
  - test/integration/foreman_puppet/dashboard_js_test.rb
334
297
  - test/integration/foreman_puppet/environment_js_test.rb
@@ -336,6 +299,7 @@ files:
336
299
  - test/integration/foreman_puppet/hostgroup_js_test.rb
337
300
  - test/integration/foreman_puppet/puppetclass_js_test.rb
338
301
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
302
+ - test/integration_puppet_helper.rb
339
303
  - test/models/foreman_puppet/config_group_class_test.rb
340
304
  - test/models/foreman_puppet/config_group_test.rb
341
305
  - test/models/foreman_puppet/environment_test.rb
@@ -385,7 +349,7 @@ homepage: https://github.com/theforeman/foreman_puppet
385
349
  licenses:
386
350
  - GPL-3.0
387
351
  metadata: {}
388
- post_install_message:
352
+ post_install_message:
389
353
  rdoc_options: []
390
354
  require_paths:
391
355
  - lib
@@ -400,74 +364,74 @@ required_rubygems_version: !ruby/object:Gem::Requirement
400
364
  - !ruby/object:Gem::Version
401
365
  version: '0'
402
366
  requirements: []
403
- rubygems_version: 3.1.2
404
- signing_key:
367
+ rubygems_version: 3.1.6
368
+ signing_key:
405
369
  specification_version: 4
406
370
  summary: Add Puppet features to Foreman
407
371
  test_files:
408
- - test/unit/foreman_puppet_test.rb
409
- - test/unit/foreman_puppet/puppet_class_importer_test.rb
410
- - test/unit/foreman_puppet/template_rendering_test.rb
411
- - test/unit/foreman_puppet/access_permissions_test.rb
412
- - test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
413
- - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
414
- - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
415
- - test/integration/foreman_puppet/dashboard_js_test.rb
416
- - test/integration/foreman_puppet/host_js_test.rb
417
- - test/integration/foreman_puppet/hostgroup_js_test.rb
372
+ - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
373
+ - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
374
+ - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
375
+ - test/services/foreman_puppet/host_counter_test.rb
418
376
  - test/integration/foreman_puppet/smartclass_parameter_js_test.rb
419
377
  - test/integration/foreman_puppet/puppetclass_js_test.rb
378
+ - test/integration/foreman_puppet/hostgroup_js_test.rb
420
379
  - test/integration/foreman_puppet/environment_js_test.rb
421
- - test/factories/foreman_puppet_factories.rb
422
- - test/factories/host_puppet_enhancements.rb
423
- - test/factories/proxy_puppet_enhancements.rb
424
- - test/models/foreman_puppet/config_group_test.rb
380
+ - test/integration/foreman_puppet/dashboard_js_test.rb
381
+ - test/integration/foreman_puppet/host_js_test.rb
382
+ - test/graphql/mutations/hosts/create_mutation_test.rb
383
+ - test/graphql/queries/puppetclasses_query_test.rb
384
+ - test/graphql/queries/host_puppet_query_test.rb
385
+ - test/graphql/queries/puppetclass_query_test.rb
386
+ - test/graphql/queries/organization_query_test.rb
387
+ - test/graphql/queries/location_query_test.rb
388
+ - test/graphql/queries/environment_query_test.rb
389
+ - test/graphql/queries/hostgroup_puppet_query_test.rb
390
+ - test/graphql/queries/environments_query_test.rb
391
+ - test/integration_puppet_helper.rb
392
+ - test/helpers/foreman_puppet/puppetclasses_helper_test.rb
393
+ - test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
394
+ - test/models/foreman_puppet/config_group_class_test.rb
425
395
  - test/models/foreman_puppet/report_test.rb
396
+ - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
397
+ - test/models/foreman_puppet/hostgroup_test.rb
398
+ - test/models/foreman_puppet/config_group_test.rb
399
+ - test/models/foreman_puppet/puppetclass_test.rb
426
400
  - test/models/foreman_puppet/host_puppet_facet_test.rb
427
- - test/models/foreman_puppet/host_test.rb
428
- - test/models/foreman_puppet/user_test.rb
429
- - test/models/foreman_puppet/provisioning_template_test.rb
430
401
  - test/models/foreman_puppet/host_config_group_test.rb
431
402
  - test/models/foreman_puppet/lookup_value_test.rb
432
- - test/models/foreman_puppet/hostgroup_test.rb
403
+ - test/models/foreman_puppet/host_test.rb
433
404
  - test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
434
- - test/models/foreman_puppet/puppetclass_lookup_key_test.rb
435
- - test/models/foreman_puppet/environment_test.rb
436
- - test/models/foreman_puppet/puppetclass_test.rb
437
- - test/models/foreman_puppet/config_group_class_test.rb
438
405
  - test/models/foreman_puppet/smart_proxy_test.rb
439
- - test/graphql/queries/hostgroup_puppet_query_test.rb
440
- - test/graphql/queries/puppetclass_query_test.rb
441
- - test/graphql/queries/location_query_test.rb
442
- - test/graphql/queries/organization_query_test.rb
443
- - test/graphql/queries/puppetclasses_query_test.rb
444
- - test/graphql/queries/environment_query_test.rb
445
- - test/graphql/queries/environments_query_test.rb
446
- - test/graphql/queries/host_puppet_query_test.rb
447
- - test/graphql/mutations/hosts/create_mutation_test.rb
406
+ - test/models/foreman_puppet/environment_test.rb
407
+ - test/models/foreman_puppet/provisioning_template_test.rb
408
+ - test/models/foreman_puppet/user_test.rb
409
+ - test/unit/foreman_puppet_test.rb
410
+ - test/unit/foreman_puppet/puppet_class_importer_test.rb
411
+ - test/unit/foreman_puppet/access_permissions_test.rb
412
+ - test/unit/foreman_puppet/template_rendering_test.rb
413
+ - test/factories/foreman_puppet_factories.rb
414
+ - test/factories/proxy_puppet_enhancements.rb
415
+ - test/factories/host_puppet_enhancements.rb
448
416
  - test/test_puppet_helper.rb
449
- - test/controllers/provisioning_templates_controller_test.rb
450
- - test/controllers/foreman_puppet/hostgroups_controller_test.rb
451
- - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
452
417
  - test/controllers/foreman_puppet/environments_controller_test.rb
453
418
  - test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
454
- - test/controllers/foreman_puppet/hosts_controller_test.rb
419
+ - test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
420
+ - test/controllers/foreman_puppet/hostgroups_controller_test.rb
421
+ - test/controllers/foreman_puppet/config_groups_controller_test.rb
455
422
  - test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
456
- - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
457
- - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
458
- - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
459
- - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
460
423
  - test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
461
- - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
462
424
  - test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
463
- - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
464
- - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
465
425
  - test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
426
+ - test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
427
+ - test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
466
428
  - test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
429
+ - test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
430
+ - test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
467
431
  - test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
432
+ - test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
433
+ - test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
434
+ - test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
468
435
  - test/controllers/foreman_puppet/puppetclasses_controller_test.rb
469
- - test/controllers/foreman_puppet/config_groups_controller_test.rb
470
- - test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
471
- - test/services/foreman_puppet/host_counter_test.rb
472
- - test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
473
- - test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
436
+ - test/controllers/foreman_puppet/hosts_controller_test.rb
437
+ - test/controllers/provisioning_templates_controller_test.rb
@@ -1 +0,0 @@
1
- <td class="hidden-xs ellipsis"><%= host.environment %></td>
@@ -1 +0,0 @@
1
- <th class="hidden-xs" width="10%"><%= sort :environment, :as => _("Puppet Environment") %></th>
@@ -1,9 +0,0 @@
1
- class MigrateHostClassPermission < ActiveRecord::Migration[6.0]
2
- def up
3
- Permission.where(resource_type: 'HostClass').update_all(resource_type: 'ForemanPuppet::HostClass')
4
- end
5
-
6
- def down
7
- # no can do
8
- end
9
- end
@@ -1,15 +0,0 @@
1
- class MigrateEnvironmentIgnoreType < ActiveRecord::Migration[6.0]
2
- def up
3
- taxonomies = Taxonomy.unscoped.where("ignore_types LIKE '%Environment%'")
4
- environment_ids = ForemanPuppet::Environment.unscoped.pluck(:id)
5
-
6
- taxonomies.each do |tax|
7
- new_types = tax.ignore_types.reject { |type| type == 'Environment' }
8
- tax.update_columns(ignore_types: new_types)
9
- taxable_rows = environment_ids.map do |env_id|
10
- { taxable_id: env_id, taxable_type: 'ForemanPuppet::Environment', taxonomy_id: tax.id }
11
- end
12
- TaxableTaxonomy.insert_all(taxable_rows) if taxable_rows.any?
13
- end
14
- end
15
- end
@@ -1,8 +0,0 @@
1
- class DropEnvironmentFromHostAndHg < ActiveRecord::Migration[6.0]
2
- def up
3
- remove_column(:hostgroups, :environment_id) if column_exists?(:hostgroups, :environment_id)
4
- remove_column(:hosts, :environment_id) if column_exists?(:hosts, :environment_id)
5
- end
6
-
7
- # This is just to clean up core, we do not want to add the columns again on uninstall
8
- end