foreman_puppet 0.0.2 → 1.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 +61 -7
- data/app/controllers/concerns/foreman_puppet/environments_import.rb +1 -1
- data/app/controllers/concerns/foreman_puppet/extensions/api_base_controller.rb +28 -0
- data/app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb +1 -1
- data/app/controllers/concerns/foreman_puppet/extensions/hostgroups_controller_extensions.rb +1 -1
- data/app/controllers/concerns/foreman_puppet/extensions/hosts_controller_extensions.rb +1 -1
- data/app/controllers/concerns/foreman_puppet/extensions/parameters_host.rb +3 -10
- data/app/controllers/concerns/foreman_puppet/parameters/puppetclass_lookup_key.rb +2 -2
- data/app/controllers/foreman_puppet/api/v2/config_groups_controller.rb +9 -1
- data/app/controllers/foreman_puppet/api/v2/environments_controller.rb +5 -2
- data/app/controllers/foreman_puppet/api/v2/host_classes_controller.rb +9 -1
- data/app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb +9 -1
- data/app/controllers/foreman_puppet/api/v2/override_values_controller.rb +1 -2
- data/app/controllers/foreman_puppet/api/v2/{base_controller.rb → puppet_base_controller.rb} +3 -4
- data/app/controllers/foreman_puppet/api/v2/{lookups_common_controller.rb → puppet_lookups_common_controller.rb} +6 -2
- data/app/controllers/foreman_puppet/api/v2/puppetclasses_controller.rb +5 -1
- data/app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb +1 -2
- data/app/controllers/foreman_puppet/config_groups_controller.rb +4 -0
- data/app/controllers/foreman_puppet/puppet_smart_proxies_controller.rb +4 -0
- data/app/controllers/foreman_puppet/puppetclass_lookup_keys_controller.rb +2 -2
- data/app/controllers/foreman_puppet/puppetclasses_controller.rb +12 -4
- data/app/graphgl/concerns/foreman_puppet/mutations/hosts/create_extensions.rb +29 -0
- data/app/graphgl/concerns/foreman_puppet/types/host_extensions.rb +13 -0
- data/app/graphgl/concerns/foreman_puppet/types/hostgroup_extensions.rb +13 -0
- data/app/graphgl/concerns/foreman_puppet/types/interface_attributes_input_extensions.rb +9 -0
- data/app/graphgl/concerns/foreman_puppet/types/location_extensions.rb +14 -0
- data/app/graphgl/concerns/foreman_puppet/types/organization_extensions.rb +14 -0
- data/app/graphgl/foreman_puppet/types/environment.rb +20 -0
- data/app/graphgl/foreman_puppet/types/puppetclass.rb +20 -0
- data/app/helpers/foreman_puppet/environments_helper.rb +1 -1
- data/app/helpers/foreman_puppet/hosts_helper.rb +15 -0
- data/app/helpers/foreman_puppet/puppetclass_lookup_keys_helper.rb +2 -2
- data/app/helpers/foreman_puppet/puppetclasses_and_environments_helper.rb +1 -1
- data/app/helpers/foreman_puppet/puppetclasses_helper.rb +2 -2
- data/app/models/concerns/foreman_puppet/extensions/host.rb +24 -9
- data/app/models/concerns/foreman_puppet/extensions/host_common.rb +17 -0
- data/app/models/concerns/foreman_puppet/extensions/hostgroup.rb +13 -7
- data/app/models/concerns/foreman_puppet/extensions/operatingsystem.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +19 -13
- data/app/models/concerns/foreman_puppet/extensions/report.rb +18 -0
- data/app/models/concerns/foreman_puppet/extensions/taxonomy.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/template_combination.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/user.rb +19 -12
- data/app/models/foreman_puppet/environment.rb +2 -0
- data/app/models/foreman_puppet/environment_class.rb +1 -1
- data/app/models/foreman_puppet/host_class.rb +1 -1
- data/app/models/foreman_puppet/host_puppet_facet.rb +6 -5
- data/app/models/foreman_puppet/hostgroup_puppet_facet.rb +1 -1
- data/app/models/{concerns/foreman_puppet/host_common.rb → foreman_puppet/puppet_facet_common.rb} +1 -1
- data/app/models/foreman_puppet/puppetclass.rb +15 -1
- data/app/{views/api/v2/template_combinations/base.json.erb → prepend_views/api/v2/template_combinations/base.json.rabl} +0 -0
- data/app/services/foreman_puppet/host_info_providers/config_groups_info.rb +2 -0
- data/app/services/foreman_puppet/puppet_class_importer.rb +17 -18
- data/app/views/foreman_puppet/common/_puppetclasses_or_envs_changed.html.erb +62 -0
- data/app/views/foreman_puppet/config_groups/index.html.erb +2 -2
- data/app/views/foreman_puppet/config_groups/welcome.html.erb +12 -11
- data/app/views/foreman_puppet/environments/index.html.erb +1 -1
- data/app/views/foreman_puppet/environments/welcome.html.erb +3 -15
- data/app/views/foreman_puppet/puppetclass_lookup_keys/welcome.html.erb +10 -8
- data/app/views/foreman_puppet/puppetclasses/_classes.html.erb +1 -1
- data/app/views/foreman_puppet/puppetclasses/_selected_classes.html.erb +1 -1
- data/app/views/foreman_puppet/puppetclasses/index.html.erb +1 -1
- data/app/views/hosts/_form_puppet_enc_tab.html.erb +1 -1
- data/app/views/hosts/select_multiple_environment.html.erb +1 -1
- data/app/views/smart_proxies/plugins/_puppet_ca.html.erb +44 -0
- data/config/initializers/api_reroute.rb +13 -0
- data/db/migrate/20200803113903_migrate_host_type_in_host_config_groups.foreman_puppet.rb +37 -12
- data/db/migrate/20201125113903_migrate_puppetclasses_to_facets.foreman_puppet.rb +13 -1
- data/lib/foreman_puppet/engine.rb +68 -20
- data/lib/foreman_puppet/register.rb +7 -2
- data/lib/foreman_puppet/version.rb +1 -1
- data/lib/foreman_puppet.rb +3 -3
- data/locale/Makefile +1 -1
- data/locale/en/LC_MESSAGES/foreman_puppet.mo +0 -0
- data/locale/en/foreman_puppet.edit.po +19 -3
- data/locale/en/foreman_puppet.po +18 -6
- data/locale/en/foreman_puppet.pox +0 -0
- data/locale/foreman_puppet.pot +19 -3
- data/locale/messages.mo +0 -0
- data/test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb +7 -3
- data/test/controllers/foreman_puppet/api/v2/environments_controller_test.rb +18 -16
- data/test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb +3 -2
- data/test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb +1 -1
- data/test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb +32 -0
- data/test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb +3 -0
- data/test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb +7 -1
- data/test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb +2 -2
- data/test/controllers/foreman_puppet/config_groups_controller_test.rb +7 -3
- data/test/controllers/foreman_puppet/environments_controller_test.rb +2 -2
- data/test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb +2 -2
- data/test/controllers/foreman_puppet/puppetclasses_controller_test.rb +5 -6
- data/test/factories/foreman_puppet_factories.rb +3 -0
- data/test/factories/host_puppet_enhancements.rb +6 -6
- data/test/graphql/mutations/hosts/create_mutation_test.rb +87 -0
- data/test/graphql/queries/environment_query_test.rb +54 -0
- data/test/graphql/queries/environments_query_test.rb +43 -0
- data/test/{qraphql → graphql}/queries/host_puppet_query_test.rb +3 -8
- data/test/{qraphql → graphql}/queries/hostgroup_puppet_query_test.rb +1 -6
- data/test/graphql/queries/location_query_test.rb +52 -0
- data/test/graphql/queries/organization_query_test.rb +52 -0
- data/test/graphql/queries/puppetclass_query_test.rb +68 -0
- data/test/graphql/queries/puppetclasses_query_test.rb +43 -0
- data/test/integration/foreman_puppet/environment_js_test.rb +4 -1
- data/test/integration/foreman_puppet/host_js_test.rb +1 -1
- data/test/integration/foreman_puppet/puppetclass_js_test.rb +4 -0
- data/test/models/foreman_puppet/config_group_class_test.rb +3 -1
- data/test/models/foreman_puppet/environment_test.rb +2 -0
- data/test/models/foreman_puppet/host_puppet_facet_test.rb +34 -1
- data/test/models/foreman_puppet/host_test.rb +4 -3
- data/test/models/foreman_puppet/hostgroup_puppet_facet_test.rb +2 -3
- data/test/models/foreman_puppet/provisioning_template_test.rb +14 -7
- data/test/models/foreman_puppet/report_test.rb +21 -0
- data/test/models/foreman_puppet/smart_proxy_test.rb +1 -1
- data/test/models/foreman_puppet/user_test.rb +37 -0
- data/test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb +35 -0
- data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +159 -197
- data/test/unit/foreman_puppet/puppet_class_importer_test.rb +16 -2
- data/webpack/index.js +3 -4
- data/webpack/src/Components/Environments/Welcome.js +37 -0
- metadata +51 -12
@@ -3,6 +3,7 @@ require 'test_puppet_helper'
|
|
3
3
|
module ForemanPuppet
|
4
4
|
class PuppetClassImporterTest < ActiveSupport::TestCase
|
5
5
|
def setup
|
6
|
+
FactoryBot.create(:environment, name: 'production') if ForemanPuppet.extracted_from_core?
|
6
7
|
ProxyAPI::Puppet.any_instance.stubs(:environments).returns(%w[foreman-testing foreman-testing-1])
|
7
8
|
ProxyAPI::Puppet.any_instance.stubs(:classes).returns(mocked_classes)
|
8
9
|
User.current = users(:admin)
|
@@ -209,7 +210,8 @@ module ForemanPuppet
|
|
209
210
|
org_b = FactoryBot.create(:organization, name: 'OrgB')
|
210
211
|
loc_b = FactoryBot.create(:location, name: 'LocB')
|
211
212
|
b_role = roles(:manager).clone name: 'b_role'
|
212
|
-
b_role.add_permissions! %i[destroy_external_parameters edit_external_parameters create_external_parameters view_external_parameters
|
213
|
+
b_role.add_permissions! %i[destroy_external_parameters edit_external_parameters create_external_parameters view_external_parameters
|
214
|
+
import_puppetclasses view_environments import_environments create_environments]
|
213
215
|
a_user = FactoryBot.create(:user, organizations: [org_a], locations: [loc_a], roles: [roles(:manager)], login: 'a_user')
|
214
216
|
b_user = FactoryBot.create(:user, organizations: [org_b], locations: [loc_b], roles: [b_role], login: 'b_user')
|
215
217
|
proxy = FactoryBot.build(:puppet_smart_proxy, organizations: [org_a, org_b], locations: [loc_a, loc_b])
|
@@ -231,6 +233,18 @@ module ForemanPuppet
|
|
231
233
|
assert_not Environment.find_by(name: 'b_env_new')
|
232
234
|
end
|
233
235
|
|
236
|
+
test 'should tax create audits correctly' do
|
237
|
+
env = FactoryBot.create(:environment)
|
238
|
+
klass_changes = { 'apache::new_nicecls' => {} }
|
239
|
+
importer.obsolete_and_new('new' => { env.name => klass_changes.to_json })
|
240
|
+
pc = Puppetclass.find_by(name: 'apache::new_nicecls')
|
241
|
+
assert pc && pc.persisted?
|
242
|
+
assert_equal 1, pc.audits.count
|
243
|
+
audit = pc.audits.first
|
244
|
+
assert_equal env.location_ids, audit.location_ids.sort
|
245
|
+
assert_equal env.organization_ids, audit.organization_ids.sort
|
246
|
+
end
|
247
|
+
|
234
248
|
private
|
235
249
|
|
236
250
|
def mocked_classes
|
@@ -241,7 +255,7 @@ module ForemanPuppet
|
|
241
255
|
'module' => 'apache',
|
242
256
|
},
|
243
257
|
}]
|
244
|
-
|
258
|
+
pcs.map { |k| [k.keys.first, Foreman::ImporterPuppetclass.new(k.values.first)] }.to_h
|
245
259
|
end
|
246
260
|
end
|
247
261
|
end
|
data/webpack/index.js
CHANGED
@@ -5,6 +5,7 @@ import componentRegistry from 'foremanReact/components/componentRegistry';
|
|
5
5
|
import { registerReducer } from 'foremanReact/common/MountingService';
|
6
6
|
import reducers from './src/reducers';
|
7
7
|
import ForemanPuppet from './src/ForemanPuppet';
|
8
|
+
import { WelcomeEnv } from './src/Components/Environments/Welcome';
|
8
9
|
|
9
10
|
// register reducers
|
10
11
|
Object.entries(reducers).forEach(([key, reducer]) =>
|
@@ -12,7 +13,5 @@ Object.entries(reducers).forEach(([key, reducer]) =>
|
|
12
13
|
);
|
13
14
|
|
14
15
|
// register components for erb mounting
|
15
|
-
componentRegistry.register({
|
16
|
-
|
17
|
-
type: ForemanPuppet,
|
18
|
-
});
|
16
|
+
componentRegistry.register({ name: 'WelcomeEnv', type: WelcomeEnv });
|
17
|
+
componentRegistry.register({ name: 'ForemanPuppet', type: ForemanPuppet });
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
3
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
4
|
+
import EmptyState from 'foremanReact/components/common/EmptyState';
|
5
|
+
import { foremanUrl, getManualURL } from 'foremanReact/common/helpers';
|
6
|
+
|
7
|
+
export const WelcomeEnv = ({ canCreate }) => {
|
8
|
+
const action = canCreate && {
|
9
|
+
title: __('Create Puppet Environment'),
|
10
|
+
url: foremanUrl('environments/new'),
|
11
|
+
};
|
12
|
+
|
13
|
+
const content = __(`If you are planning to use Foreman as an external node classifier you should provide information about one or more environments.<br/>
|
14
|
+
This information is commonly imported from a pre-existing Puppet configuration by the use of the <a href=${getManualURL(
|
15
|
+
'4.2.2Classes'
|
16
|
+
)}>Puppet classes and environment importer.</a>`);
|
17
|
+
return (
|
18
|
+
<EmptyState
|
19
|
+
icon="th"
|
20
|
+
iconType="fa"
|
21
|
+
header={__('Environments')}
|
22
|
+
description={<div dangerouslySetInnerHTML={{ __html: content }} />}
|
23
|
+
documentation={{ url: getManualURL('4.2.1Environments') }}
|
24
|
+
action={action}
|
25
|
+
/>
|
26
|
+
);
|
27
|
+
};
|
28
|
+
|
29
|
+
WelcomeEnv.propTypes = {
|
30
|
+
canCreate: PropTypes.bool,
|
31
|
+
};
|
32
|
+
|
33
|
+
WelcomeEnv.defaultProps = {
|
34
|
+
canCreate: false,
|
35
|
+
};
|
36
|
+
|
37
|
+
export default WelcomeEnv;
|
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: 0.0
|
4
|
+
version: 1.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: 2021-
|
12
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Allow assigning Puppet environmets and classes to the Foreman Hosts.
|
15
15
|
email:
|
@@ -24,6 +24,7 @@ files:
|
|
24
24
|
- app/assets/stylesheets/foreman_puppet.scss
|
25
25
|
- app/controllers/concerns/foreman_puppet/api/import_puppetclasses_common_controller.rb
|
26
26
|
- app/controllers/concerns/foreman_puppet/environments_import.rb
|
27
|
+
- app/controllers/concerns/foreman_puppet/extensions/api_base_controller.rb
|
27
28
|
- app/controllers/concerns/foreman_puppet/extensions/api_hostgroups_controller.rb
|
28
29
|
- app/controllers/concerns/foreman_puppet/extensions/api_template_combinations_controller.rb
|
29
30
|
- app/controllers/concerns/foreman_puppet/extensions/api_v2_hosts_controller.rb
|
@@ -37,13 +38,13 @@ files:
|
|
37
38
|
- app/controllers/concerns/foreman_puppet/parameters/environment.rb
|
38
39
|
- app/controllers/concerns/foreman_puppet/parameters/puppetclass.rb
|
39
40
|
- app/controllers/concerns/foreman_puppet/parameters/puppetclass_lookup_key.rb
|
40
|
-
- app/controllers/foreman_puppet/api/v2/base_controller.rb
|
41
41
|
- app/controllers/foreman_puppet/api/v2/config_groups_controller.rb
|
42
42
|
- app/controllers/foreman_puppet/api/v2/environments_controller.rb
|
43
43
|
- app/controllers/foreman_puppet/api/v2/host_classes_controller.rb
|
44
44
|
- app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb
|
45
|
-
- app/controllers/foreman_puppet/api/v2/lookups_common_controller.rb
|
46
45
|
- app/controllers/foreman_puppet/api/v2/override_values_controller.rb
|
46
|
+
- app/controllers/foreman_puppet/api/v2/puppet_base_controller.rb
|
47
|
+
- app/controllers/foreman_puppet/api/v2/puppet_lookups_common_controller.rb
|
47
48
|
- app/controllers/foreman_puppet/api/v2/puppetclasses_controller.rb
|
48
49
|
- app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb
|
49
50
|
- app/controllers/foreman_puppet/config_groups_controller.rb
|
@@ -52,6 +53,14 @@ files:
|
|
52
53
|
- app/controllers/foreman_puppet/puppetclass_lookup_keys_controller.rb
|
53
54
|
- app/controllers/foreman_puppet/puppetclasses_controller.rb
|
54
55
|
- app/controllers/foreman_puppet/react_controller.rb
|
56
|
+
- app/graphgl/concerns/foreman_puppet/mutations/hosts/create_extensions.rb
|
57
|
+
- app/graphgl/concerns/foreman_puppet/types/host_extensions.rb
|
58
|
+
- app/graphgl/concerns/foreman_puppet/types/hostgroup_extensions.rb
|
59
|
+
- app/graphgl/concerns/foreman_puppet/types/interface_attributes_input_extensions.rb
|
60
|
+
- app/graphgl/concerns/foreman_puppet/types/location_extensions.rb
|
61
|
+
- app/graphgl/concerns/foreman_puppet/types/organization_extensions.rb
|
62
|
+
- app/graphgl/foreman_puppet/types/environment.rb
|
63
|
+
- app/graphgl/foreman_puppet/types/puppetclass.rb
|
55
64
|
- app/helpers/concerns/foreman_puppet/template_renderer_scope.rb
|
56
65
|
- app/helpers/foreman_puppet/environments_helper.rb
|
57
66
|
- app/helpers/foreman_puppet/hosts_and_hostgroups_helper.rb
|
@@ -62,6 +71,7 @@ files:
|
|
62
71
|
- app/helpers/foreman_puppet/puppetclasses_helper.rb
|
63
72
|
- app/helpers/foreman_puppet/template_combinations_helper.rb
|
64
73
|
- app/models/concerns/foreman_puppet/extensions/host.rb
|
74
|
+
- app/models/concerns/foreman_puppet/extensions/host_common.rb
|
65
75
|
- app/models/concerns/foreman_puppet/extensions/hostgroup.rb
|
66
76
|
- app/models/concerns/foreman_puppet/extensions/nic_managed.rb
|
67
77
|
- app/models/concerns/foreman_puppet/extensions/operatingsystem.rb
|
@@ -70,7 +80,6 @@ files:
|
|
70
80
|
- app/models/concerns/foreman_puppet/extensions/taxonomy.rb
|
71
81
|
- app/models/concerns/foreman_puppet/extensions/template_combination.rb
|
72
82
|
- app/models/concerns/foreman_puppet/extensions/user.rb
|
73
|
-
- app/models/concerns/foreman_puppet/host_common.rb
|
74
83
|
- app/models/concerns/foreman_puppet/puppet_lookup_value_extensions.rb
|
75
84
|
- app/models/foreman_puppet/config_group.rb
|
76
85
|
- app/models/foreman_puppet/config_group_class.rb
|
@@ -81,14 +90,15 @@ files:
|
|
81
90
|
- app/models/foreman_puppet/host_puppet_facet.rb
|
82
91
|
- app/models/foreman_puppet/hostgroup_class.rb
|
83
92
|
- app/models/foreman_puppet/hostgroup_puppet_facet.rb
|
93
|
+
- app/models/foreman_puppet/puppet_facet_common.rb
|
84
94
|
- app/models/foreman_puppet/puppetclass.rb
|
85
95
|
- app/models/foreman_puppet/puppetclass_lookup_key.rb
|
96
|
+
- app/prepend_views/api/v2/template_combinations/base.json.rabl
|
86
97
|
- app/services/foreman_puppet/host_info_providers/config_groups_info.rb
|
87
98
|
- app/services/foreman_puppet/host_info_providers/puppet_info.rb
|
88
99
|
- app/services/foreman_puppet/input_type/puppet_parameter_input.rb
|
89
100
|
- app/services/foreman_puppet/proxy_status/puppet.rb
|
90
101
|
- app/services/foreman_puppet/puppet_class_importer.rb
|
91
|
-
- app/views/api/v2/template_combinations/base.json.erb
|
92
102
|
- app/views/foreman_puppet/api/v2/config_groups/base.json.rabl
|
93
103
|
- app/views/foreman_puppet/api/v2/config_groups/create.json.rabl
|
94
104
|
- app/views/foreman_puppet/api/v2/config_groups/index.json.rabl
|
@@ -127,6 +137,7 @@ files:
|
|
127
137
|
- app/views/foreman_puppet/api/v2/smart_class_parameters/main.json.rabl
|
128
138
|
- app/views/foreman_puppet/api/v2/smart_class_parameters/show.json.rabl
|
129
139
|
- app/views/foreman_puppet/api/v2/smart_class_parameters/update.json.rabl
|
140
|
+
- app/views/foreman_puppet/common/_puppetclasses_or_envs_changed.html.erb
|
130
141
|
- app/views/foreman_puppet/config_groups/_config_group.html.erb
|
131
142
|
- app/views/foreman_puppet/config_groups/_config_groups_selection.html.erb
|
132
143
|
- app/views/foreman_puppet/config_groups/_form.html.erb
|
@@ -160,7 +171,9 @@ files:
|
|
160
171
|
- app/views/provisioning_templates/_combination.html.erb
|
161
172
|
- app/views/provisioning_templates/_combinations.html.erb
|
162
173
|
- app/views/smart_proxies/plugins/_puppet.html.erb
|
174
|
+
- app/views/smart_proxies/plugins/_puppet_ca.html.erb
|
163
175
|
- config/api_routes.rb
|
176
|
+
- config/initializers/api_reroute.rb
|
164
177
|
- config/routes.rb
|
165
178
|
- db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
|
166
179
|
- db/migrate/20200720123005_migrate_puppet_core_types.foreman_puppet.rb
|
@@ -187,11 +200,14 @@ files:
|
|
187
200
|
- lib/tasks/foreman_puppet_tasks.rake
|
188
201
|
- locale/Makefile
|
189
202
|
- locale/action_names.rb
|
203
|
+
- locale/en/LC_MESSAGES/foreman_puppet.mo
|
190
204
|
- locale/en/foreman_puppet.edit.po
|
191
205
|
- locale/en/foreman_puppet.po
|
192
206
|
- locale/en/foreman_puppet.po.time_stamp
|
207
|
+
- locale/en/foreman_puppet.pox
|
193
208
|
- locale/foreman_puppet.pot
|
194
209
|
- locale/gemspec.rb
|
210
|
+
- locale/messages.mo
|
195
211
|
- package.json
|
196
212
|
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
197
213
|
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
@@ -201,6 +217,7 @@ files:
|
|
201
217
|
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
202
218
|
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
203
219
|
- test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
|
220
|
+
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
204
221
|
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
205
222
|
- test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
|
206
223
|
- test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
|
@@ -215,6 +232,15 @@ files:
|
|
215
232
|
- test/factories/foreman_puppet_factories.rb
|
216
233
|
- test/factories/host_puppet_enhancements.rb
|
217
234
|
- test/factories/proxy_puppet_enhancements.rb
|
235
|
+
- test/graphql/mutations/hosts/create_mutation_test.rb
|
236
|
+
- test/graphql/queries/environment_query_test.rb
|
237
|
+
- test/graphql/queries/environments_query_test.rb
|
238
|
+
- test/graphql/queries/host_puppet_query_test.rb
|
239
|
+
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
240
|
+
- test/graphql/queries/location_query_test.rb
|
241
|
+
- test/graphql/queries/organization_query_test.rb
|
242
|
+
- test/graphql/queries/puppetclass_query_test.rb
|
243
|
+
- test/graphql/queries/puppetclasses_query_test.rb
|
218
244
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
219
245
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
220
246
|
- test/integration/foreman_puppet/environment_js_test.rb
|
@@ -234,9 +260,10 @@ files:
|
|
234
260
|
- test/models/foreman_puppet/provisioning_template_test.rb
|
235
261
|
- test/models/foreman_puppet/puppetclass_lookup_key_test.rb
|
236
262
|
- test/models/foreman_puppet/puppetclass_test.rb
|
263
|
+
- test/models/foreman_puppet/report_test.rb
|
237
264
|
- test/models/foreman_puppet/smart_proxy_test.rb
|
238
|
-
- test/
|
239
|
-
- test/
|
265
|
+
- test/models/foreman_puppet/user_test.rb
|
266
|
+
- test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
|
240
267
|
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
241
268
|
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
242
269
|
- test/test_puppet_helper.rb
|
@@ -254,6 +281,7 @@ files:
|
|
254
281
|
- webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware.js
|
255
282
|
- webpack/fills_index.js
|
256
283
|
- webpack/index.js
|
284
|
+
- webpack/src/Components/Environments/Welcome.js
|
257
285
|
- webpack/src/ForemanPuppet.js
|
258
286
|
- webpack/src/Router/__snapshots__/routes.test.js.snap
|
259
287
|
- webpack/src/Router/index.js
|
@@ -264,7 +292,7 @@ files:
|
|
264
292
|
- webpack/src/foreman_puppet_host_form.test.js
|
265
293
|
- webpack/src/index.js
|
266
294
|
- webpack/src/reducers.js
|
267
|
-
homepage: https://theforeman
|
295
|
+
homepage: https://github.com/theforeman/foreman_puppet
|
268
296
|
licenses:
|
269
297
|
- GPL-3.0
|
270
298
|
metadata: {}
|
@@ -283,11 +311,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
311
|
- !ruby/object:Gem::Version
|
284
312
|
version: '0'
|
285
313
|
requirements: []
|
286
|
-
rubygems_version: 3.1.
|
314
|
+
rubygems_version: 3.1.6
|
287
315
|
signing_key:
|
288
316
|
specification_version: 4
|
289
317
|
summary: Adds puppet ENC features
|
290
318
|
test_files:
|
319
|
+
- test/services/foreman_puppet/host_info_providers/config_groups_info_test.rb
|
291
320
|
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
292
321
|
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
293
322
|
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
@@ -295,9 +324,19 @@ test_files:
|
|
295
324
|
- test/integration/foreman_puppet/hostgroup_js_test.rb
|
296
325
|
- test/integration/foreman_puppet/environment_js_test.rb
|
297
326
|
- test/integration/foreman_puppet/host_js_test.rb
|
327
|
+
- test/graphql/mutations/hosts/create_mutation_test.rb
|
328
|
+
- test/graphql/queries/puppetclasses_query_test.rb
|
329
|
+
- test/graphql/queries/host_puppet_query_test.rb
|
330
|
+
- test/graphql/queries/puppetclass_query_test.rb
|
331
|
+
- test/graphql/queries/organization_query_test.rb
|
332
|
+
- test/graphql/queries/location_query_test.rb
|
333
|
+
- test/graphql/queries/environment_query_test.rb
|
334
|
+
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
335
|
+
- test/graphql/queries/environments_query_test.rb
|
298
336
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
299
337
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
300
338
|
- test/models/foreman_puppet/config_group_class_test.rb
|
339
|
+
- test/models/foreman_puppet/report_test.rb
|
301
340
|
- test/models/foreman_puppet/puppetclass_lookup_key_test.rb
|
302
341
|
- test/models/foreman_puppet/hostgroup_test.rb
|
303
342
|
- test/models/foreman_puppet/config_group_test.rb
|
@@ -310,12 +349,11 @@ test_files:
|
|
310
349
|
- test/models/foreman_puppet/smart_proxy_test.rb
|
311
350
|
- test/models/foreman_puppet/environment_test.rb
|
312
351
|
- test/models/foreman_puppet/provisioning_template_test.rb
|
352
|
+
- test/models/foreman_puppet/user_test.rb
|
313
353
|
- test/unit/foreman_puppet_test.rb
|
314
354
|
- test/unit/foreman_puppet/puppet_class_importer_test.rb
|
315
355
|
- test/unit/foreman_puppet/access_permissions_test.rb
|
316
356
|
- test/unit/foreman_puppet/template_rendering_test.rb
|
317
|
-
- test/qraphql/queries/host_puppet_query_test.rb
|
318
|
-
- test/qraphql/queries/hostgroup_puppet_query_test.rb
|
319
357
|
- test/factories/foreman_puppet_factories.rb
|
320
358
|
- test/factories/proxy_puppet_enhancements.rb
|
321
359
|
- test/factories/host_puppet_enhancements.rb
|
@@ -334,6 +372,7 @@ test_files:
|
|
334
372
|
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
335
373
|
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
336
374
|
- test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
|
375
|
+
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
337
376
|
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
338
377
|
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
339
378
|
- test/controllers/foreman_puppet/puppetclasses_controller_test.rb
|