foreman_puppet 6.4.0 → 8.0.0
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/lib/foreman_puppet/engine.rb +5 -7
- data/lib/foreman_puppet/register.rb +1 -1
- data/lib/foreman_puppet/version.rb +1 -1
- data/webpack/global_index.js +21 -0
- metadata +54 -55
- data/locale/en/foreman_puppet.edit.po +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8afb163e0a92e0237e545a8d6b99918f498126eab48a2ab0f1b5d47393919db9
|
4
|
+
data.tar.gz: 0123defbf5e8e8497b929b9f23aa8aeb7cebf15e07a4771cb951f5871a5d705d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35845e3b125c4aaa9db265f32c21b260185761006af63b9ab73a98cee510b836e0359447108aa0f6babd900f8f2a20bd8ecc2b69ca642179dce3c14623cd5f8c
|
7
|
+
data.tar.gz: 62f7365a84ec1c7fb180a62e3cdd8ee2a1cc58f8367e033ae9c1512af4e40925f600479f908f7aceb913142ca750d4c99604b34323b7504ce23e99add62ac132
|
data/README.md
CHANGED
@@ -33,7 +33,8 @@ Some features will remain in core:
|
|
33
33
|
|
34
34
|
|Foreman version|Plugin version|Notes |
|
35
35
|
|---------------|--------------|------------------------------------------|
|
36
|
-
| >= 3.
|
36
|
+
| >= 3.11 | ~> 7.0 | Required |
|
37
|
+
| ~> 3.7 - 3.10 | ~> 6.0 | Required |
|
37
38
|
| ~> 3.5, 3.6 | ~> 5.0 | Required |
|
38
39
|
| ~> 3.4 | ~> 4.1 | Required |
|
39
40
|
| ~> 3.3 | ~> 4.0 | Required |
|
@@ -78,7 +79,7 @@ Fork and send a Pull Request. Thanks!
|
|
78
79
|
|
79
80
|
## Copyright
|
80
81
|
|
81
|
-
Copyright (c) *2020-
|
82
|
+
Copyright (c) *2020-2024* *The Foreman developers*
|
82
83
|
|
83
84
|
This program is free software: you can redistribute it and/or modify
|
84
85
|
it under the terms of the GNU General Public License as published by
|
@@ -6,8 +6,10 @@ module ForemanPuppet
|
|
6
6
|
config.paths['db/migrate'] << 'db/migrate_foreman' if Gem::Dependency.new('', ">= #{ForemanPuppet::FOREMAN_DROP_MIGRATIONS_VERSION}").match?('', SETTINGS[:version].notag)
|
7
7
|
config.paths['config/routes.rb'].unshift('config/api_routes.rb')
|
8
8
|
|
9
|
-
initializer 'foreman_puppet.register_plugin', before: :finisher_hook do |
|
10
|
-
|
9
|
+
initializer 'foreman_puppet.register_plugin', before: :finisher_hook do |app|
|
10
|
+
app.reloader.to_prepare do
|
11
|
+
require_relative 'register'
|
12
|
+
end
|
11
13
|
Apipie.configuration.checksum_path += ['/foreman_puppet/api/']
|
12
14
|
end
|
13
15
|
|
@@ -23,14 +25,10 @@ module ForemanPuppet
|
|
23
25
|
SETTINGS[:foreman_puppet] = { assets: { precompile: ['foreman_puppet.scss'] } }
|
24
26
|
end
|
25
27
|
|
26
|
-
initializer 'foreman_puppet.patch_parameters' do
|
27
|
-
# Parameters should go ASAP as they need to be applied before they are included in core controller
|
28
|
-
Foreman::Controller::Parameters::TemplateCombination.include ForemanPuppet::Extensions::ParametersTemplateCombination
|
29
|
-
end
|
30
|
-
|
31
28
|
# Include concerns in this config.to_prepare block
|
32
29
|
# rubocop:disable Metrics/BlockLength
|
33
30
|
config.to_prepare do
|
31
|
+
Foreman::Controller::Parameters::TemplateCombination.include ForemanPuppet::Extensions::ParametersTemplateCombination
|
34
32
|
# Facets extenstion is applied too early - before the Hostgroup is complete
|
35
33
|
# We redefine thing, so we need to wait until complete definition of Hostgroup
|
36
34
|
# thus separate patching instead of using facet patching
|
data/webpack/global_index.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
2
|
+
import { registerColumns } from 'foremanReact/components/HostsIndex/Columns/core';
|
3
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
2
4
|
import reducers from './src/reducers';
|
3
5
|
import { registerFills } from './src/Extends/Fills';
|
4
6
|
import { registerLegacy } from './legacy';
|
@@ -9,3 +11,22 @@ registerReducer('puppet', reducers);
|
|
9
11
|
registerFills();
|
10
12
|
// TODO: the checkForUnavailablePuppetclasses is very nasty
|
11
13
|
registerLegacy();
|
14
|
+
|
15
|
+
// register columns for React hosts index page
|
16
|
+
const puppetHostsIndexColumns = [
|
17
|
+
{
|
18
|
+
columnName: 'environment',
|
19
|
+
title: __('Puppet env'),
|
20
|
+
isSorted: true,
|
21
|
+
wrapper: hostDetails => hostDetails.environment_name,
|
22
|
+
weight: 2700,
|
23
|
+
},
|
24
|
+
];
|
25
|
+
|
26
|
+
puppetHostsIndexColumns.forEach(column => {
|
27
|
+
column.tableName = 'hosts';
|
28
|
+
column.categoryName = 'Puppet';
|
29
|
+
column.categoryKey = 'puppet';
|
30
|
+
});
|
31
|
+
|
32
|
+
registerColumns(puppetHostsIndexColumns);
|
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:
|
4
|
+
version: 8.0.0
|
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: 2024-
|
12
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Allow assigning Puppet environments and classes to the Foreman Hosts.
|
15
15
|
email:
|
@@ -245,7 +245,6 @@ files:
|
|
245
245
|
- locale/de/LC_MESSAGES/foreman_puppet.mo
|
246
246
|
- locale/de/foreman_puppet.po
|
247
247
|
- locale/en/LC_MESSAGES/foreman_puppet.mo
|
248
|
-
- locale/en/foreman_puppet.edit.po
|
249
248
|
- locale/en/foreman_puppet.po
|
250
249
|
- locale/en_GB/LC_MESSAGES/foreman_puppet.mo
|
251
250
|
- locale/en_GB/foreman_puppet.po
|
@@ -408,76 +407,76 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
408
407
|
- !ruby/object:Gem::Version
|
409
408
|
version: '0'
|
410
409
|
requirements: []
|
411
|
-
rubygems_version: 3.
|
410
|
+
rubygems_version: 3.3.27
|
412
411
|
signing_key:
|
413
412
|
specification_version: 4
|
414
413
|
summary: Add Puppet features to Foreman
|
415
414
|
test_files:
|
416
|
-
- test/
|
417
|
-
- test/
|
418
|
-
- test/
|
419
|
-
- test/
|
420
|
-
- test/
|
421
|
-
- test/
|
415
|
+
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
416
|
+
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
417
|
+
- test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
|
418
|
+
- test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
|
419
|
+
- test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
|
420
|
+
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
421
|
+
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
422
|
+
- test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
|
423
|
+
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
424
|
+
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
425
|
+
- test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
|
426
|
+
- test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
|
427
|
+
- test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
|
428
|
+
- test/controllers/foreman_puppet/config_groups_controller_test.rb
|
429
|
+
- test/controllers/foreman_puppet/environments_controller_test.rb
|
430
|
+
- test/controllers/foreman_puppet/hostgroups_controller_test.rb
|
431
|
+
- test/controllers/foreman_puppet/hosts_controller_test.rb
|
432
|
+
- test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
|
433
|
+
- test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
|
434
|
+
- test/controllers/foreman_puppet/puppetclasses_controller_test.rb
|
435
|
+
- test/controllers/provisioning_templates_controller_test.rb
|
436
|
+
- test/factories/foreman_puppet_factories.rb
|
437
|
+
- test/factories/host_puppet_enhancements.rb
|
438
|
+
- test/factories/proxy_puppet_enhancements.rb
|
439
|
+
- test/graphql/mutations/hosts/create_mutation_test.rb
|
440
|
+
- test/graphql/queries/environment_query_test.rb
|
441
|
+
- test/graphql/queries/environments_query_test.rb
|
442
|
+
- test/graphql/queries/host_puppet_query_test.rb
|
443
|
+
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
444
|
+
- test/graphql/queries/location_query_test.rb
|
445
|
+
- test/graphql/queries/organization_query_test.rb
|
446
|
+
- test/graphql/queries/puppetclass_query_test.rb
|
447
|
+
- test/graphql/queries/puppetclasses_query_test.rb
|
422
448
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
449
|
+
- test/helpers/foreman_puppet/puppetclass_lookup_keys_helper_test.rb
|
423
450
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
424
451
|
- test/integration/foreman_puppet/dashboard_js_test.rb
|
452
|
+
- test/integration/foreman_puppet/environment_js_test.rb
|
425
453
|
- test/integration/foreman_puppet/host_js_test.rb
|
426
454
|
- test/integration/foreman_puppet/hostgroup_js_test.rb
|
427
|
-
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
428
455
|
- test/integration/foreman_puppet/puppetclass_js_test.rb
|
429
|
-
- test/integration/foreman_puppet/
|
430
|
-
- test/factories/foreman_puppet_factories.rb
|
431
|
-
- test/factories/host_puppet_enhancements.rb
|
432
|
-
- test/factories/proxy_puppet_enhancements.rb
|
456
|
+
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
433
457
|
- test/integration_puppet_helper.rb
|
458
|
+
- test/models/foreman_puppet/config_group_class_test.rb
|
434
459
|
- test/models/foreman_puppet/config_group_test.rb
|
435
|
-
- test/models/foreman_puppet/
|
460
|
+
- test/models/foreman_puppet/environment_test.rb
|
461
|
+
- test/models/foreman_puppet/host_config_group_test.rb
|
436
462
|
- test/models/foreman_puppet/host_puppet_facet_test.rb
|
437
463
|
- test/models/foreman_puppet/host_test.rb
|
438
|
-
- test/models/foreman_puppet/user_test.rb
|
439
|
-
- test/models/foreman_puppet/provisioning_template_test.rb
|
440
|
-
- test/models/foreman_puppet/host_config_group_test.rb
|
441
|
-
- test/models/foreman_puppet/lookup_value_test.rb
|
442
|
-
- test/models/foreman_puppet/hostgroup_test.rb
|
443
464
|
- test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
|
465
|
+
- test/models/foreman_puppet/hostgroup_test.rb
|
466
|
+
- test/models/foreman_puppet/lookup_value_test.rb
|
467
|
+
- test/models/foreman_puppet/provisioning_template_test.rb
|
444
468
|
- test/models/foreman_puppet/puppetclass_lookup_key_test.rb
|
445
|
-
- test/models/foreman_puppet/environment_test.rb
|
446
469
|
- test/models/foreman_puppet/puppetclass_test.rb
|
447
|
-
- test/models/foreman_puppet/
|
470
|
+
- test/models/foreman_puppet/report_test.rb
|
448
471
|
- test/models/foreman_puppet/smart_proxy_test.rb
|
449
|
-
- test/
|
450
|
-
- test/graphql/queries/puppetclass_query_test.rb
|
451
|
-
- test/graphql/queries/location_query_test.rb
|
452
|
-
- test/graphql/queries/organization_query_test.rb
|
453
|
-
- test/graphql/queries/puppetclasses_query_test.rb
|
454
|
-
- test/graphql/queries/environment_query_test.rb
|
455
|
-
- test/graphql/queries/environments_query_test.rb
|
456
|
-
- test/graphql/queries/host_puppet_query_test.rb
|
457
|
-
- test/graphql/mutations/hosts/create_mutation_test.rb
|
458
|
-
- test/test_puppet_helper.rb
|
459
|
-
- test/controllers/provisioning_templates_controller_test.rb
|
460
|
-
- test/controllers/foreman_puppet/hostgroups_controller_test.rb
|
461
|
-
- test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
|
462
|
-
- test/controllers/foreman_puppet/environments_controller_test.rb
|
463
|
-
- test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
|
464
|
-
- test/controllers/foreman_puppet/hosts_controller_test.rb
|
465
|
-
- test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
|
466
|
-
- test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
|
467
|
-
- test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
|
468
|
-
- test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
|
469
|
-
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
470
|
-
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
471
|
-
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
472
|
-
- test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
|
473
|
-
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
474
|
-
- test/controllers/foreman_puppet/api/v2/smart_proxies_controller_test.rb
|
475
|
-
- test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
|
476
|
-
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
477
|
-
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
478
|
-
- test/controllers/foreman_puppet/puppetclasses_controller_test.rb
|
479
|
-
- test/controllers/foreman_puppet/config_groups_controller_test.rb
|
480
|
-
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
472
|
+
- test/models/foreman_puppet/user_test.rb
|
481
473
|
- test/services/foreman_puppet/host_counter_test.rb
|
482
474
|
- test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
|
483
475
|
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
476
|
+
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
477
|
+
- test/test_puppet_helper.rb
|
478
|
+
- test/unit/foreman_puppet/access_permissions_test.rb
|
479
|
+
- test/unit/foreman_puppet/global_id_test.rb
|
480
|
+
- test/unit/foreman_puppet/puppet_class_importer_test.rb
|
481
|
+
- test/unit/foreman_puppet/template_rendering_test.rb
|
482
|
+
- test/unit/foreman_puppet_test.rb
|
File without changes
|