foreman_puppet 4.0.4 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/app/models/concerns/foreman_puppet/extensions/host.rb +1 -1
- data/app/models/foreman_puppet/puppetclass.rb +2 -2
- data/lib/foreman_puppet/version.rb +1 -1
- data/lib/tasks/foreman_puppet_tasks.rake +0 -10
- data/locale/en/foreman_puppet.edit.po +0 -0
- data/test/graphql/mutations/hosts/create_mutation_test.rb +1 -1
- data/webpack/src/Extends/Host/PuppetTab/index.js +2 -0
- metadata +59 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85029a61a622dd49d223e5e0c57bfc096d417c8b5761f5574d05635f03d6569a
|
4
|
+
data.tar.gz: 9bd16fa183dfc25f913110c4ad18172c0982c41f453649a65f6531ab3826f0f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ec5b4da654c66eef0bf8ffda2bf487adda07d35295e3f91eca999022a515370ff109aec6b14b0c39b9999e58af845b3770faccdbb256098322ff72ae6c95861
|
7
|
+
data.tar.gz: d6a1447d180e49d0f7c6d21a889110bc455299b7c3bac9230e033b2a65c6d9ab7e29989f313a0d800c66191b025da172f3e56f6ca0e5b57f63aa3f1e992932b2
|
data/README.md
CHANGED
@@ -37,8 +37,9 @@ You can install it on Foreman 2.5 to prepare for the Foreman update.
|
|
37
37
|
|
38
38
|
|Foreman version|Plugin version|Notes |
|
39
39
|
|---------------|--------------|------------------------------------------|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
| ~> 3.4 | ~> 4.1 | Required |
|
41
|
+
| ~> 3.3 | ~> 4.0 | Required |
|
42
|
+
| ~> 3.2 | ~> 3.0 | Required |
|
42
43
|
| ~> 3.1 | ~> 2.0 | Required |
|
43
44
|
| ~> 3.0 | ~> 1.0 | Required |
|
44
45
|
| >= 2.5 | ~> 0.1 | Optional; replaces Core features |
|
@@ -30,7 +30,7 @@ module ForemanPuppet
|
|
30
30
|
def search_by_puppetclass(_key, operator, value)
|
31
31
|
conditions = sanitize_sql_for_conditions(["puppetclasses.name #{operator} ?", value_to_sql(operator, value)])
|
32
32
|
config_group_ids = ForemanPuppet::ConfigGroup.joins(:puppetclasses).where(conditions).pluck(:id)
|
33
|
-
host_ids = ::Host.authorized(:view_hosts
|
33
|
+
host_ids = ::Host.authorized(:view_hosts).joins(puppet: :puppetclasses).where(conditions).distinct.pluck(:id)
|
34
34
|
host_ids += ForemanPuppet::HostConfigGroup
|
35
35
|
.where(host_type: 'ForemanPuppet::HostPuppetFacet')
|
36
36
|
.where(config_group_id: config_group_ids)
|
@@ -15,8 +15,8 @@ module ForemanPuppet
|
|
15
15
|
before_destroy EnsureNotUsedBy.new(:hosts, :hostgroups)
|
16
16
|
has_many :environment_classes, dependent: :destroy, inverse_of: :puppetclass
|
17
17
|
has_many :environments, -> { distinct }, through: :environment_classes
|
18
|
-
has_many :organizations, -> { distinct.reorder(
|
19
|
-
has_many :locations, -> { distinct.reorder(
|
18
|
+
has_many :organizations, -> { distinct.reorder(:id) }, through: :environments
|
19
|
+
has_many :locations, -> { distinct.reorder(:id) }, through: :environments
|
20
20
|
|
21
21
|
# rubocop:disable Rails/HasAndBelongsToMany
|
22
22
|
has_and_belongs_to_many :operatingsystems
|
File without changes
|
@@ -72,7 +72,7 @@ module ForemanPuppet
|
|
72
72
|
assert_equal 1, host.interfaces.count
|
73
73
|
interface = host.interfaces.first
|
74
74
|
assert_equal 'Nic::Bond', interface.type
|
75
|
-
|
75
|
+
assert_same_elements %w[eth0 eth1], interface.attached_to.split(', ')
|
76
76
|
assert_equal 'bond0', interface.identifier
|
77
77
|
assert interface.primary
|
78
78
|
assert interface.provision
|
@@ -21,6 +21,8 @@ const PuppetTab = ({ response, status, location: { pathname } }) => {
|
|
21
21
|
{SECONDARY_TABS.map(({ key, title }) => (
|
22
22
|
<Tab
|
23
23
|
key={key}
|
24
|
+
id={`puppet-subtab-${key}`}
|
25
|
+
ouiaId={`puppet-subtab-${key}`}
|
24
26
|
eventKey={key}
|
25
27
|
title={<TabTitleText>{title}</TabTitleText>}
|
26
28
|
/>
|
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: 4.
|
4
|
+
version: 4.1.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:
|
12
|
+
date: 2023-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Allow assigning Puppet environments and classes to the Foreman Hosts.
|
15
15
|
email:
|
@@ -224,6 +224,7 @@ files:
|
|
224
224
|
- locale/de/LC_MESSAGES/foreman_puppet.mo
|
225
225
|
- locale/de/foreman_puppet.po
|
226
226
|
- locale/en/LC_MESSAGES/foreman_puppet.mo
|
227
|
+
- locale/en/foreman_puppet.edit.po
|
227
228
|
- locale/en/foreman_puppet.po
|
228
229
|
- locale/en_GB/LC_MESSAGES/foreman_puppet.mo
|
229
230
|
- locale/en_GB/foreman_puppet.po
|
@@ -360,7 +361,7 @@ homepage: https://github.com/theforeman/foreman_puppet
|
|
360
361
|
licenses:
|
361
362
|
- GPL-3.0
|
362
363
|
metadata: {}
|
363
|
-
post_install_message:
|
364
|
+
post_install_message:
|
364
365
|
rdoc_options: []
|
365
366
|
require_paths:
|
366
367
|
- lib
|
@@ -375,75 +376,75 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
375
376
|
- !ruby/object:Gem::Version
|
376
377
|
version: '0'
|
377
378
|
requirements: []
|
378
|
-
rubygems_version: 3.1.
|
379
|
-
signing_key:
|
379
|
+
rubygems_version: 3.1.2
|
380
|
+
signing_key:
|
380
381
|
specification_version: 4
|
381
382
|
summary: Add Puppet features to Foreman
|
382
383
|
test_files:
|
383
|
-
- test/
|
384
|
-
- test/
|
385
|
-
- test/
|
386
|
-
- test/
|
387
|
-
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
388
|
-
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
389
|
-
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
390
|
-
- test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
|
391
|
-
- test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
|
392
|
-
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
393
|
-
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
394
|
-
- test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
|
395
|
-
- test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
|
396
|
-
- test/controllers/foreman_puppet/config_groups_controller_test.rb
|
397
|
-
- test/controllers/foreman_puppet/hostgroups_controller_test.rb
|
398
|
-
- test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
|
399
|
-
- test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
|
400
|
-
- test/controllers/foreman_puppet/puppetclasses_controller_test.rb
|
401
|
-
- test/controllers/foreman_puppet/environments_controller_test.rb
|
402
|
-
- test/controllers/foreman_puppet/hosts_controller_test.rb
|
403
|
-
- test/controllers/provisioning_templates_controller_test.rb
|
404
|
-
- test/factories/foreman_puppet_factories.rb
|
405
|
-
- test/factories/host_puppet_enhancements.rb
|
406
|
-
- test/factories/proxy_puppet_enhancements.rb
|
407
|
-
- test/graphql/mutations/hosts/create_mutation_test.rb
|
408
|
-
- test/graphql/queries/environments_query_test.rb
|
409
|
-
- test/graphql/queries/host_puppet_query_test.rb
|
410
|
-
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
411
|
-
- test/graphql/queries/location_query_test.rb
|
412
|
-
- test/graphql/queries/organization_query_test.rb
|
413
|
-
- test/graphql/queries/puppetclasses_query_test.rb
|
414
|
-
- test/graphql/queries/environment_query_test.rb
|
415
|
-
- test/graphql/queries/puppetclass_query_test.rb
|
416
|
-
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
384
|
+
- test/unit/foreman_puppet_test.rb
|
385
|
+
- test/unit/foreman_puppet/puppet_class_importer_test.rb
|
386
|
+
- test/unit/foreman_puppet/template_rendering_test.rb
|
387
|
+
- test/unit/foreman_puppet/access_permissions_test.rb
|
417
388
|
- test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
|
389
|
+
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
418
390
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
419
391
|
- test/integration/foreman_puppet/dashboard_js_test.rb
|
420
|
-
- test/integration/foreman_puppet/environment_js_test.rb
|
421
392
|
- test/integration/foreman_puppet/host_js_test.rb
|
422
393
|
- test/integration/foreman_puppet/hostgroup_js_test.rb
|
423
|
-
- test/integration/foreman_puppet/puppetclass_js_test.rb
|
424
394
|
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
425
|
-
- test/
|
395
|
+
- test/integration/foreman_puppet/puppetclass_js_test.rb
|
396
|
+
- test/integration/foreman_puppet/environment_js_test.rb
|
397
|
+
- test/factories/foreman_puppet_factories.rb
|
398
|
+
- test/factories/host_puppet_enhancements.rb
|
399
|
+
- test/factories/proxy_puppet_enhancements.rb
|
400
|
+
- test/integration_puppet_helper.rb
|
426
401
|
- test/models/foreman_puppet/config_group_test.rb
|
427
|
-
- test/models/foreman_puppet/environment_test.rb
|
428
|
-
- test/models/foreman_puppet/host_config_group_test.rb
|
429
|
-
- test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
|
430
|
-
- test/models/foreman_puppet/hostgroup_test.rb
|
431
|
-
- test/models/foreman_puppet/lookup_value_test.rb
|
432
|
-
- test/models/foreman_puppet/puppetclass_lookup_key_test.rb
|
433
402
|
- test/models/foreman_puppet/report_test.rb
|
434
|
-
- test/models/foreman_puppet/smart_proxy_test.rb
|
435
|
-
- test/models/foreman_puppet/user_test.rb
|
436
403
|
- test/models/foreman_puppet/host_puppet_facet_test.rb
|
437
404
|
- test/models/foreman_puppet/host_test.rb
|
405
|
+
- test/models/foreman_puppet/user_test.rb
|
438
406
|
- test/models/foreman_puppet/provisioning_template_test.rb
|
407
|
+
- test/models/foreman_puppet/host_config_group_test.rb
|
408
|
+
- test/models/foreman_puppet/lookup_value_test.rb
|
409
|
+
- test/models/foreman_puppet/hostgroup_test.rb
|
410
|
+
- test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
|
411
|
+
- test/models/foreman_puppet/puppetclass_lookup_key_test.rb
|
412
|
+
- test/models/foreman_puppet/environment_test.rb
|
439
413
|
- test/models/foreman_puppet/puppetclass_test.rb
|
414
|
+
- test/models/foreman_puppet/config_group_class_test.rb
|
415
|
+
- test/models/foreman_puppet/smart_proxy_test.rb
|
416
|
+
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
417
|
+
- test/graphql/queries/puppetclass_query_test.rb
|
418
|
+
- test/graphql/queries/location_query_test.rb
|
419
|
+
- test/graphql/queries/organization_query_test.rb
|
420
|
+
- test/graphql/queries/puppetclasses_query_test.rb
|
421
|
+
- test/graphql/queries/environment_query_test.rb
|
422
|
+
- test/graphql/queries/environments_query_test.rb
|
423
|
+
- test/graphql/queries/host_puppet_query_test.rb
|
424
|
+
- test/graphql/mutations/hosts/create_mutation_test.rb
|
425
|
+
- test/test_puppet_helper.rb
|
426
|
+
- test/controllers/provisioning_templates_controller_test.rb
|
427
|
+
- test/controllers/foreman_puppet/hostgroups_controller_test.rb
|
428
|
+
- test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
|
429
|
+
- test/controllers/foreman_puppet/environments_controller_test.rb
|
430
|
+
- test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
|
431
|
+
- test/controllers/foreman_puppet/hosts_controller_test.rb
|
432
|
+
- test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
|
433
|
+
- test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
|
434
|
+
- test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
|
435
|
+
- test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
|
436
|
+
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
437
|
+
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
438
|
+
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
439
|
+
- test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
|
440
|
+
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
441
|
+
- test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
|
442
|
+
- test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
|
443
|
+
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
444
|
+
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
445
|
+
- test/controllers/foreman_puppet/puppetclasses_controller_test.rb
|
446
|
+
- test/controllers/foreman_puppet/config_groups_controller_test.rb
|
447
|
+
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
440
448
|
- test/services/foreman_puppet/host_counter_test.rb
|
441
449
|
- test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
|
442
450
|
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
443
|
-
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
444
|
-
- test/test_puppet_helper.rb
|
445
|
-
- test/unit/foreman_puppet/access_permissions_test.rb
|
446
|
-
- test/unit/foreman_puppet/puppet_class_importer_test.rb
|
447
|
-
- test/unit/foreman_puppet/template_rendering_test.rb
|
448
|
-
- test/unit/foreman_puppet_test.rb
|
449
|
-
- test/integration_puppet_helper.rb
|