foreman_puppet 0.1.0 → 1.0.0.rc.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/foreman_puppet/api/v2/config_groups_controller.rb +5 -1
- data/app/controllers/foreman_puppet/api/v2/environments_controller.rb +1 -2
- data/app/controllers/foreman_puppet/api/v2/host_classes_controller.rb +5 -1
- data/app/controllers/foreman_puppet/api/v2/hostgroup_classes_controller.rb +5 -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} +2 -3
- 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/puppetclasses_controller.rb +9 -2
- 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/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/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 +6 -4
- data/app/models/concerns/foreman_puppet/extensions/hostgroup.rb +6 -2
- data/app/models/concerns/foreman_puppet/extensions/operatingsystem.rb +1 -1
- data/app/models/concerns/foreman_puppet/extensions/provisioning_template.rb +16 -10
- data/app/models/concerns/foreman_puppet/extensions/taxonomy.rb +1 -1
- data/app/models/foreman_puppet/environment.rb +2 -0
- data/app/models/foreman_puppet/host_puppet_facet.rb +1 -1
- 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 +2 -0
- 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/puppet_class_importer.rb +3 -4
- 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/welcome.html.erb +3 -15
- data/app/views/foreman_puppet/puppetclass_lookup_keys/welcome.html.erb +10 -8
- data/config/initializers/api_reroute.rb +13 -0
- data/db/migrate/20200803113903_migrate_host_type_in_host_config_groups.foreman_puppet.rb +16 -10
- data/lib/foreman_puppet.rb +1 -1
- data/lib/foreman_puppet/engine.rb +48 -16
- data/lib/foreman_puppet/register.rb +5 -0
- data/lib/foreman_puppet/version.rb +1 -1
- data/locale/en/foreman_puppet.edit.po +927 -0
- data/locale/en/foreman_puppet.po.time_stamp +0 -0
- data/locale/en/foreman_puppet.pox +0 -0
- 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 +17 -15
- data/test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb +2 -1
- data/test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb +1 -1
- 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 +1 -1
- 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/host_puppet_enhancements.rb +6 -6
- data/test/graphql/mutations/hosts/create_mutation_test.rb +66 -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 +1 -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_test.rb +3 -2
- data/test/models/foreman_puppet/hostgroup_puppet_facet_test.rb +2 -3
- data/test/models/foreman_puppet/provisioning_template_test.rb +23 -23
- data/test/models/foreman_puppet/smart_proxy_test.rb +1 -1
- data/test/models/foreman_puppet/user_test.rb +13 -5
- data/test/services/foreman_puppet/host_info_providers/puppet_info_test.rb +0 -36
- data/test/unit/foreman_puppet/puppet_class_importer_test.rb +3 -1
- data/webpack/index.js +3 -4
- data/webpack/src/Components/Environments/Welcome.js +37 -0
- metadata +78 -50
@@ -17,7 +17,7 @@ module ForemanPuppet
|
|
17
17
|
end
|
18
18
|
|
19
19
|
test 'can count connected hosts' do
|
20
|
-
FactoryBot.create(:host, :with_puppet_enc,
|
20
|
+
FactoryBot.create(:host, :with_puppet_enc, puppet_proxy: proxy)
|
21
21
|
|
22
22
|
as_admin do
|
23
23
|
assert_equal 1, proxy.hosts_count
|
@@ -4,19 +4,27 @@ module ForemanPuppet
|
|
4
4
|
class UserTest < ActiveSupport::TestCase
|
5
5
|
describe '#visible_environments' do
|
6
6
|
let(:environment) { FactoryBot.create(:environment) }
|
7
|
-
|
7
|
+
let(:untaxed_env) { FactoryBot.create(:environment, organizations: [], locations: []) }
|
8
|
+
let(:env_names) do
|
9
|
+
env_names = [environment.name, untaxed_env.name]
|
10
|
+
env_names += %w[production global_puppetmaster testing] unless ForemanPuppet.extracted_from_core?
|
11
|
+
env_names
|
12
|
+
end
|
13
|
+
|
14
|
+
setup do
|
15
|
+
environment
|
16
|
+
untaxed_env
|
17
|
+
end
|
8
18
|
|
9
19
|
# These will need refactor when the environment fixtures will be gone
|
10
20
|
test 'should show the list of environments visible as admin user' do
|
11
|
-
# Admin user sees all environments - including the ones without taxonomies
|
12
|
-
env_names = %w[production global_puppetmaster testing] + [environment.name]
|
21
|
+
# Admin user sees all environments - including the ones without taxonomies\
|
13
22
|
assert_equal env_names.sort, ::User.current.visible_environments.sort
|
14
23
|
end
|
15
24
|
|
16
25
|
test 'should show the list of environments visible as inherited admin user' do
|
17
26
|
::User.current = FactoryBot.create(:user, usergroups: [FactoryBot.create(:usergroup, admin: true)]).reload
|
18
|
-
env_names
|
19
|
-
assert_same_elements env_names, ::User.current.visible_environments
|
27
|
+
assert_same_elements env_names.sort, ::User.current.visible_environments
|
20
28
|
end
|
21
29
|
|
22
30
|
test 'should show the list of environments visible as non-admin user' do
|
@@ -164,9 +164,6 @@ module ForemanPuppet
|
|
164
164
|
end
|
165
165
|
|
166
166
|
test '#enc should return correct merged override to host when multiple overrides for inherited hostgroups exist' do
|
167
|
-
FactoryBot.create(:setting,
|
168
|
-
name: 'matchers_inheritance',
|
169
|
-
value: true)
|
170
167
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
171
168
|
key_type: 'array', merge_overrides: true,
|
172
169
|
path: "organization\nhostgroup\nlocation",
|
@@ -197,9 +194,6 @@ module ForemanPuppet
|
|
197
194
|
end
|
198
195
|
|
199
196
|
test '#enc should return correct merged override to host when multiple overrides for inherited organizations exist' do
|
200
|
-
FactoryBot.create(:setting,
|
201
|
-
name: 'matchers_inheritance',
|
202
|
-
value: true)
|
203
197
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
204
198
|
key_type: 'array', merge_overrides: true,
|
205
199
|
path: "location\norganization\nhostgroup",
|
@@ -231,9 +225,6 @@ module ForemanPuppet
|
|
231
225
|
end
|
232
226
|
|
233
227
|
test '#enc should return correct merged override to host when multiple overrides for inherited locations exist' do
|
234
|
-
FactoryBot.create(:setting,
|
235
|
-
name: 'matchers_inheritance',
|
236
|
-
value: true)
|
237
228
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
238
229
|
key_type: 'array', merge_overrides: true,
|
239
230
|
path: "organization\nhostgroup\nlocation",
|
@@ -265,9 +256,6 @@ module ForemanPuppet
|
|
265
256
|
end
|
266
257
|
|
267
258
|
test '#enc should return correct merged override to host when multiple overrides for inherited hostgroups exist' do
|
268
|
-
FactoryBot.create(:setting,
|
269
|
-
name: 'matchers_inheritance',
|
270
|
-
value: true)
|
271
259
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
272
260
|
key_type: 'array', merge_overrides: true,
|
273
261
|
path: "organization\nhostgroup\nlocation",
|
@@ -302,9 +290,6 @@ module ForemanPuppet
|
|
302
290
|
end
|
303
291
|
|
304
292
|
test '#enc should return correct merged override to host when multiple overrides for inherited organizations exist' do
|
305
|
-
FactoryBot.create(:setting,
|
306
|
-
name: 'matchers_inheritance',
|
307
|
-
value: true)
|
308
293
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
309
294
|
key_type: 'array', merge_overrides: true,
|
310
295
|
path: "location\norganization\nhostgroup",
|
@@ -340,9 +325,6 @@ module ForemanPuppet
|
|
340
325
|
end
|
341
326
|
|
342
327
|
test '#enc should return correct merged override to host when multiple overrides for inherited locations exist' do
|
343
|
-
FactoryBot.create(:setting,
|
344
|
-
name: 'matchers_inheritance',
|
345
|
-
value: true)
|
346
328
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
347
329
|
key_type: 'array', merge_overrides: true,
|
348
330
|
path: "organization\nhostgroup\nlocation",
|
@@ -378,9 +360,6 @@ module ForemanPuppet
|
|
378
360
|
end
|
379
361
|
|
380
362
|
test '#enc should return correct override to host when multiple overrides for inherited hostgroups exist' do
|
381
|
-
FactoryBot.create(:setting,
|
382
|
-
name: 'matchers_inheritance',
|
383
|
-
value: true)
|
384
363
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
385
364
|
merge_overrides: false,
|
386
365
|
path: "organization\nhostgroup\nlocation",
|
@@ -415,9 +394,6 @@ module ForemanPuppet
|
|
415
394
|
end
|
416
395
|
|
417
396
|
test '#enc should return correct override to host when multiple overrides for inherited organizations exist' do
|
418
|
-
FactoryBot.create(:setting,
|
419
|
-
name: 'matchers_inheritance',
|
420
|
-
value: true)
|
421
397
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
422
398
|
merge_overrides: false,
|
423
399
|
path: "location\norganization\nhostgroup",
|
@@ -451,9 +427,6 @@ module ForemanPuppet
|
|
451
427
|
end
|
452
428
|
|
453
429
|
test '#enc should return correct override to host when multiple overrides for inherited locations exist' do
|
454
|
-
FactoryBot.create(:setting,
|
455
|
-
name: 'matchers_inheritance',
|
456
|
-
value: true)
|
457
430
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
458
431
|
merge_overrides: false,
|
459
432
|
path: "organization\nlocation\nhostgroup",
|
@@ -487,9 +460,6 @@ module ForemanPuppet
|
|
487
460
|
end
|
488
461
|
|
489
462
|
test '#enc should return correct override to host when multiple overrides for inherited hostgroups exist' do
|
490
|
-
FactoryBot.create(:setting,
|
491
|
-
name: 'matchers_inheritance',
|
492
|
-
value: true)
|
493
463
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
494
464
|
merge_overrides: false,
|
495
465
|
path: "organization\nhostgroup\nlocation",
|
@@ -523,9 +493,6 @@ module ForemanPuppet
|
|
523
493
|
end
|
524
494
|
|
525
495
|
test '#enc should return correct override to host when multiple overrides for inherited organizations exist' do
|
526
|
-
FactoryBot.create(:setting,
|
527
|
-
name: 'matchers_inheritance',
|
528
|
-
value: true)
|
529
496
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
530
497
|
merge_overrides: false,
|
531
498
|
path: "organization\nhostgroup\nlocation",
|
@@ -561,9 +528,6 @@ module ForemanPuppet
|
|
561
528
|
end
|
562
529
|
|
563
530
|
test '#enc should return correct override to host when multiple overrides for inherited locations exist' do
|
564
|
-
FactoryBot.create(:setting,
|
565
|
-
name: 'matchers_inheritance',
|
566
|
-
value: true)
|
567
531
|
key = FactoryBot.create(:puppetclass_lookup_key, omit: true,
|
568
532
|
merge_overrides: false,
|
569
533
|
path: "location\norganization\nhostgroup",
|
@@ -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])
|
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,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.0.rc.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: 2021-
|
12
|
+
date: 2021-07-15 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,13 @@ 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/location_extensions.rb
|
60
|
+
- app/graphgl/concerns/foreman_puppet/types/organization_extensions.rb
|
61
|
+
- app/graphgl/foreman_puppet/types/environment.rb
|
62
|
+
- app/graphgl/foreman_puppet/types/puppetclass.rb
|
55
63
|
- app/helpers/concerns/foreman_puppet/template_renderer_scope.rb
|
56
64
|
- app/helpers/foreman_puppet/environments_helper.rb
|
57
65
|
- app/helpers/foreman_puppet/hosts_and_hostgroups_helper.rb
|
@@ -70,7 +78,6 @@ files:
|
|
70
78
|
- app/models/concerns/foreman_puppet/extensions/taxonomy.rb
|
71
79
|
- app/models/concerns/foreman_puppet/extensions/template_combination.rb
|
72
80
|
- app/models/concerns/foreman_puppet/extensions/user.rb
|
73
|
-
- app/models/concerns/foreman_puppet/host_common.rb
|
74
81
|
- app/models/concerns/foreman_puppet/puppet_lookup_value_extensions.rb
|
75
82
|
- app/models/foreman_puppet/config_group.rb
|
76
83
|
- app/models/foreman_puppet/config_group_class.rb
|
@@ -81,14 +88,15 @@ files:
|
|
81
88
|
- app/models/foreman_puppet/host_puppet_facet.rb
|
82
89
|
- app/models/foreman_puppet/hostgroup_class.rb
|
83
90
|
- app/models/foreman_puppet/hostgroup_puppet_facet.rb
|
91
|
+
- app/models/foreman_puppet/puppet_facet_common.rb
|
84
92
|
- app/models/foreman_puppet/puppetclass.rb
|
85
93
|
- app/models/foreman_puppet/puppetclass_lookup_key.rb
|
94
|
+
- app/prepend_views/api/v2/template_combinations/base.json.rabl
|
86
95
|
- app/services/foreman_puppet/host_info_providers/config_groups_info.rb
|
87
96
|
- app/services/foreman_puppet/host_info_providers/puppet_info.rb
|
88
97
|
- app/services/foreman_puppet/input_type/puppet_parameter_input.rb
|
89
98
|
- app/services/foreman_puppet/proxy_status/puppet.rb
|
90
99
|
- app/services/foreman_puppet/puppet_class_importer.rb
|
91
|
-
- app/views/api/v2/template_combinations/base.json.erb
|
92
100
|
- app/views/foreman_puppet/api/v2/config_groups/base.json.rabl
|
93
101
|
- app/views/foreman_puppet/api/v2/config_groups/create.json.rabl
|
94
102
|
- app/views/foreman_puppet/api/v2/config_groups/index.json.rabl
|
@@ -162,6 +170,7 @@ files:
|
|
162
170
|
- app/views/provisioning_templates/_combinations.html.erb
|
163
171
|
- app/views/smart_proxies/plugins/_puppet.html.erb
|
164
172
|
- config/api_routes.rb
|
173
|
+
- config/initializers/api_reroute.rb
|
165
174
|
- config/routes.rb
|
166
175
|
- db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
|
167
176
|
- db/migrate/20200720123005_migrate_puppet_core_types.foreman_puppet.rb
|
@@ -189,9 +198,13 @@ files:
|
|
189
198
|
- locale/Makefile
|
190
199
|
- locale/action_names.rb
|
191
200
|
- locale/en/LC_MESSAGES/foreman_puppet.mo
|
201
|
+
- locale/en/foreman_puppet.edit.po
|
192
202
|
- locale/en/foreman_puppet.po
|
203
|
+
- locale/en/foreman_puppet.po.time_stamp
|
204
|
+
- locale/en/foreman_puppet.pox
|
193
205
|
- locale/foreman_puppet.pot
|
194
206
|
- locale/gemspec.rb
|
207
|
+
- locale/messages.mo
|
195
208
|
- package.json
|
196
209
|
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
197
210
|
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
@@ -216,6 +229,15 @@ files:
|
|
216
229
|
- test/factories/foreman_puppet_factories.rb
|
217
230
|
- test/factories/host_puppet_enhancements.rb
|
218
231
|
- test/factories/proxy_puppet_enhancements.rb
|
232
|
+
- test/graphql/mutations/hosts/create_mutation_test.rb
|
233
|
+
- test/graphql/queries/environment_query_test.rb
|
234
|
+
- test/graphql/queries/environments_query_test.rb
|
235
|
+
- test/graphql/queries/host_puppet_query_test.rb
|
236
|
+
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
237
|
+
- test/graphql/queries/location_query_test.rb
|
238
|
+
- test/graphql/queries/organization_query_test.rb
|
239
|
+
- test/graphql/queries/puppetclass_query_test.rb
|
240
|
+
- test/graphql/queries/puppetclasses_query_test.rb
|
219
241
|
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
220
242
|
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
221
243
|
- test/integration/foreman_puppet/environment_js_test.rb
|
@@ -238,8 +260,6 @@ files:
|
|
238
260
|
- test/models/foreman_puppet/report_test.rb
|
239
261
|
- test/models/foreman_puppet/smart_proxy_test.rb
|
240
262
|
- test/models/foreman_puppet/user_test.rb
|
241
|
-
- test/qraphql/queries/host_puppet_query_test.rb
|
242
|
-
- test/qraphql/queries/hostgroup_puppet_query_test.rb
|
243
263
|
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
244
264
|
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
245
265
|
- test/test_puppet_helper.rb
|
@@ -257,6 +277,7 @@ files:
|
|
257
277
|
- webpack/__mocks__/foremanReact/redux/middlewares/IntervalMiddleware.js
|
258
278
|
- webpack/fills_index.js
|
259
279
|
- webpack/index.js
|
280
|
+
- webpack/src/Components/Environments/Welcome.js
|
260
281
|
- webpack/src/ForemanPuppet.js
|
261
282
|
- webpack/src/Router/__snapshots__/routes.test.js.snap
|
262
283
|
- webpack/src/Router/index.js
|
@@ -271,7 +292,7 @@ homepage: https://github.com/theforeman/foreman_puppet
|
|
271
292
|
licenses:
|
272
293
|
- GPL-3.0
|
273
294
|
metadata: {}
|
274
|
-
post_install_message:
|
295
|
+
post_install_message:
|
275
296
|
rdoc_options: []
|
276
297
|
require_paths:
|
277
298
|
- lib
|
@@ -282,66 +303,73 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
282
303
|
version: '0'
|
283
304
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
305
|
requirements:
|
285
|
-
- - "
|
306
|
+
- - ">"
|
286
307
|
- !ruby/object:Gem::Version
|
287
|
-
version:
|
308
|
+
version: 1.3.1
|
288
309
|
requirements: []
|
289
|
-
rubygems_version: 3.1.
|
290
|
-
signing_key:
|
310
|
+
rubygems_version: 3.1.6
|
311
|
+
signing_key:
|
291
312
|
specification_version: 4
|
292
313
|
summary: Adds puppet ENC features
|
293
314
|
test_files:
|
294
|
-
- test/
|
295
|
-
- test/
|
296
|
-
- test/
|
297
|
-
- test/
|
298
|
-
- test/unit/foreman_puppet/template_rendering_test.rb
|
299
|
-
- test/unit/foreman_puppet/puppet_class_importer_test.rb
|
300
|
-
- test/unit/foreman_puppet_test.rb
|
315
|
+
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
316
|
+
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
317
|
+
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
318
|
+
- test/integration/foreman_puppet/puppetclass_js_test.rb
|
301
319
|
- test/integration/foreman_puppet/hostgroup_js_test.rb
|
302
320
|
- test/integration/foreman_puppet/environment_js_test.rb
|
303
|
-
- test/integration/foreman_puppet/puppetclass_js_test.rb
|
304
|
-
- test/integration/foreman_puppet/smartclass_parameter_js_test.rb
|
305
321
|
- test/integration/foreman_puppet/host_js_test.rb
|
306
|
-
- test/
|
307
|
-
- test/
|
322
|
+
- test/graphql/mutations/hosts/create_mutation_test.rb
|
323
|
+
- test/graphql/queries/puppetclasses_query_test.rb
|
324
|
+
- test/graphql/queries/host_puppet_query_test.rb
|
325
|
+
- test/graphql/queries/puppetclass_query_test.rb
|
326
|
+
- test/graphql/queries/organization_query_test.rb
|
327
|
+
- test/graphql/queries/location_query_test.rb
|
328
|
+
- test/graphql/queries/environment_query_test.rb
|
329
|
+
- test/graphql/queries/hostgroup_puppet_query_test.rb
|
330
|
+
- test/graphql/queries/environments_query_test.rb
|
331
|
+
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
332
|
+
- test/helpers/foreman_puppet/hosts_and_hostgroups_helper_test.rb
|
333
|
+
- test/models/foreman_puppet/config_group_class_test.rb
|
308
334
|
- test/models/foreman_puppet/report_test.rb
|
309
|
-
- test/models/foreman_puppet/
|
310
|
-
- test/models/foreman_puppet/environment_test.rb
|
311
|
-
- test/models/foreman_puppet/config_group_test.rb
|
335
|
+
- test/models/foreman_puppet/puppetclass_lookup_key_test.rb
|
312
336
|
- test/models/foreman_puppet/hostgroup_test.rb
|
313
|
-
- test/models/foreman_puppet/
|
337
|
+
- test/models/foreman_puppet/config_group_test.rb
|
314
338
|
- test/models/foreman_puppet/puppetclass_test.rb
|
315
|
-
- test/models/foreman_puppet/
|
316
|
-
- test/models/foreman_puppet/
|
339
|
+
- test/models/foreman_puppet/host_puppet_facet_test.rb
|
340
|
+
- test/models/foreman_puppet/host_config_group_test.rb
|
341
|
+
- test/models/foreman_puppet/lookup_value_test.rb
|
342
|
+
- test/models/foreman_puppet/host_test.rb
|
317
343
|
- test/models/foreman_puppet/hostgroup_puppet_facet_test.rb
|
344
|
+
- test/models/foreman_puppet/smart_proxy_test.rb
|
345
|
+
- test/models/foreman_puppet/environment_test.rb
|
318
346
|
- test/models/foreman_puppet/provisioning_template_test.rb
|
319
|
-
- test/models/foreman_puppet/config_group_class_test.rb
|
320
347
|
- test/models/foreman_puppet/user_test.rb
|
321
|
-
- test/
|
322
|
-
- test/
|
348
|
+
- test/unit/foreman_puppet_test.rb
|
349
|
+
- test/unit/foreman_puppet/puppet_class_importer_test.rb
|
350
|
+
- test/unit/foreman_puppet/access_permissions_test.rb
|
351
|
+
- test/unit/foreman_puppet/template_rendering_test.rb
|
323
352
|
- test/factories/foreman_puppet_factories.rb
|
324
|
-
- test/
|
325
|
-
- test/
|
326
|
-
- test/
|
353
|
+
- test/factories/proxy_puppet_enhancements.rb
|
354
|
+
- test/factories/host_puppet_enhancements.rb
|
355
|
+
- test/test_puppet_helper.rb
|
356
|
+
- test/controllers/foreman_puppet/environments_controller_test.rb
|
327
357
|
- test/controllers/foreman_puppet/puppet_smart_proxies_controller_test.rb
|
358
|
+
- test/controllers/foreman_puppet/puppetclass_lookup_keys_controller_test.rb
|
328
359
|
- test/controllers/foreman_puppet/hostgroups_controller_test.rb
|
329
360
|
- test/controllers/foreman_puppet/config_groups_controller_test.rb
|
330
|
-
- test/controllers/foreman_puppet/
|
331
|
-
- test/controllers/foreman_puppet/api/v2/
|
332
|
-
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
361
|
+
- test/controllers/foreman_puppet/api/v2/template_combinations_controller_test.rb
|
362
|
+
- test/controllers/foreman_puppet/api/v2/environments_controller_test.rb
|
333
363
|
- test/controllers/foreman_puppet/api/v2/hostgroup_classes_controller_test.rb
|
334
|
-
- test/controllers/foreman_puppet/api/v2/
|
335
|
-
- test/controllers/foreman_puppet/api/v2/
|
336
|
-
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
364
|
+
- test/controllers/foreman_puppet/api/v2/override_values_controller_test.rb
|
365
|
+
- test/controllers/foreman_puppet/api/v2/smart_class_parameters_controller_test.rb
|
337
366
|
- test/controllers/foreman_puppet/api/v2/hostgroups_controller_test.rb
|
338
367
|
- test/controllers/foreman_puppet/api/v2/config_groups_controller_test.rb
|
339
|
-
- test/controllers/foreman_puppet/api/v2/
|
340
|
-
- test/controllers/foreman_puppet/api/v2/
|
368
|
+
- test/controllers/foreman_puppet/api/v2/lookups_common_controller_test.rb
|
369
|
+
- test/controllers/foreman_puppet/api/v2/host_classes_controller_test.rb
|
370
|
+
- test/controllers/foreman_puppet/api/v2/provisioning_templates_controller_test.rb
|
371
|
+
- test/controllers/foreman_puppet/api/v2/puppetclasses_controller_test.rb
|
341
372
|
- test/controllers/foreman_puppet/api/v2/hosts_controller_test.rb
|
342
|
-
- test/controllers/foreman_puppet/
|
373
|
+
- test/controllers/foreman_puppet/puppetclasses_controller_test.rb
|
343
374
|
- test/controllers/foreman_puppet/hosts_controller_test.rb
|
344
|
-
- test/
|
345
|
-
- test/helpers/foreman_puppet/puppetclasses_helper_test.rb
|
346
|
-
- test/services/foreman_puppet/input_type/puppet_parameter_input_test.rb
|
347
|
-
- test/services/foreman_puppet/host_info_providers/puppet_info_test.rb
|
375
|
+
- test/controllers/provisioning_templates_controller_test.rb
|