foreman_salt 16.0.2 → 17.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 +4 -7
- data/app/helpers/foreman_salt/salt_plugin_helper.rb +1 -1
- data/app/lib/proxy_api/salt.rb +1 -1
- data/config/initializers/zeitwerk.rb +3 -0
- data/lib/foreman_salt/engine.rb +5 -8
- data/lib/foreman_salt/plugin.rb +1 -1
- data/lib/foreman_salt/version.rb +1 -1
- metadata +33 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82fca85dd06aa9b1f00de05d5f9a3a6dc032e61ca62b35a82ea7d7ae6c6397a
|
4
|
+
data.tar.gz: d938b6e1f269fc7c7ac915aa079c37f3bec1bad9657a591efe572d637ffb98b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b553f0e5ed333b97a30829c67c4c0b410a4067eeb6f8e209d0019b7d692468d08a85f30bcc44ed9921daf692160c830b838cfc5463418d05ec5e6d734449cd25
|
7
|
+
data.tar.gz: 88b64a141a1731adfa1bf066a9ecb27a4af236b99ee18453843eb20f0e6869f2668ca1bf3e6a1eae3f2bcb424bc3f432600c76a7f4e08e41c9b288c5a898840f
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
[![Ruby Tests](https://github.com/theforeman/foreman_salt/actions/workflows/ruby_tests.yml/badge.svg)](https://github.com/theforeman/foreman_salt/actions/workflows/ruby_tests.yml)
|
1
2
|
[![Gem Version](https://img.shields.io/gem/v/foreman_salt.svg)](https://rubygems.org/gems/foreman_salt)
|
2
3
|
[![Code Climate](https://codeclimate.com/github/theforeman/foreman_salt/badges/gpa.svg)](https://codeclimate.com/github/theforeman/foreman_salt)
|
3
4
|
[![GPL License](https://img.shields.io/github/license/theforeman/foreman_salt.svg)](https://github.com/theforeman/foreman_salt/blob/master/LICENSE)
|
@@ -10,14 +11,10 @@ This plug-in adds support for Salt to Foreman.
|
|
10
11
|
|
11
12
|
| Foreman Version | Plugin Version |
|
12
13
|
| --------------- | --------------:|
|
13
|
-
| <= 1.16 | 10.0.0 |
|
14
|
-
| >= 1.17 | 10.1.0 |
|
15
|
-
| >= 1.21 | 10.2.0 |
|
16
|
-
| >= 1.22 | 10.3.1 |
|
17
|
-
| >= 1.23 | 11.0.1 |
|
18
|
-
| >= 1.24 | 13.2.0 |
|
19
14
|
| >= 2.5 | 14.0.0 |
|
20
15
|
| >= 3.2 | 15.0.0 |
|
16
|
+
| >= 3.7 | 16.0.0 |
|
17
|
+
|
21
18
|
|
22
19
|
## Documentation
|
23
20
|
|
@@ -29,7 +26,7 @@ Fork and send a Pull Request. Thanks!
|
|
29
26
|
|
30
27
|
## Copyright
|
31
28
|
|
32
|
-
Copyright (c)
|
29
|
+
Copyright (c) 2024 The Foreman community
|
33
30
|
|
34
31
|
This program is free software: you can redistribute it and/or modify
|
35
32
|
it under the terms of the GNU General Public License as published by
|
@@ -4,7 +4,7 @@ module ForemanSalt
|
|
4
4
|
# General helper functions for foreman_salt
|
5
5
|
module SaltPluginHelper
|
6
6
|
def salt_doc_url
|
7
|
-
'https://docs.theforeman.org/nightly/
|
7
|
+
'https://docs.theforeman.org/nightly/Managing_Configurations_Salt/index-foreman-el.html'
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/app/lib/proxy_api/salt.rb
CHANGED
data/lib/foreman_salt/engine.rb
CHANGED
@@ -5,11 +5,6 @@ module ForemanSalt
|
|
5
5
|
class Engine < ::Rails::Engine
|
6
6
|
engine_name 'foreman_salt'
|
7
7
|
|
8
|
-
config.autoload_paths += Dir["#{config.root}/app/controllers/foreman_salt/concerns"]
|
9
|
-
config.autoload_paths += Dir["#{config.root}/app/helpers"]
|
10
|
-
config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
|
11
|
-
config.autoload_paths += Dir["#{config.root}/app/overrides"]
|
12
|
-
config.autoload_paths += Dir["#{config.root}/app/services"]
|
13
8
|
config.autoload_paths += Dir["#{config.root}/app/lib"]
|
14
9
|
|
15
10
|
config.paths['config/routes.rb'].unshift('config/api_routes.rb')
|
@@ -42,12 +37,14 @@ module ForemanSalt
|
|
42
37
|
Apipie.configuration.checksum_path += ['/salt/api/']
|
43
38
|
end
|
44
39
|
|
45
|
-
initializer 'foreman_salt.register_plugin', before: :finisher_hook do
|
46
|
-
|
40
|
+
initializer 'foreman_salt.register_plugin', before: :finisher_hook do |app|
|
41
|
+
app.reloader.to_prepare do
|
42
|
+
require_relative 'plugin'
|
43
|
+
end
|
47
44
|
end
|
48
45
|
|
49
46
|
config.to_prepare do
|
50
|
-
|
47
|
+
require_relative 'extensions'
|
51
48
|
|
52
49
|
RemoteExecutionProvider.register(:Salt, SaltProvider)
|
53
50
|
ForemanSalt.register_rex_feature
|
data/lib/foreman_salt/plugin.rb
CHANGED
data/lib/foreman_salt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_salt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 17.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Benjamin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -30,40 +30,40 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '14.0'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '15'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '
|
43
|
+
version: '14.0'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '15'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: foreman-tasks
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '10.0'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '11'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
63
|
+
version: '10.0'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '11'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: theforeman-rubocop
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- app/views/hosts/select_multiple_salt_environment.html.erb
|
201
201
|
- app/views/hosts/select_multiple_salt_master.html.erb
|
202
202
|
- config/api_routes.rb
|
203
|
+
- config/initializers/zeitwerk.rb
|
203
204
|
- config/routes.rb
|
204
205
|
- db/migrate/20140813081913_add_salt_proxy_to_host_and_host_group.rb
|
205
206
|
- db/migrate/20140817210214_create_salt_modules.rb
|
@@ -269,7 +270,7 @@ homepage: https://github.com/theforeman/foreman_salt
|
|
269
270
|
licenses:
|
270
271
|
- GPL-3.0
|
271
272
|
metadata: {}
|
272
|
-
post_install_message:
|
273
|
+
post_install_message:
|
273
274
|
rdoc_options: []
|
274
275
|
require_paths:
|
275
276
|
- lib
|
@@ -284,36 +285,36 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
284
285
|
- !ruby/object:Gem::Version
|
285
286
|
version: '0'
|
286
287
|
requirements: []
|
287
|
-
rubygems_version: 3.
|
288
|
-
signing_key:
|
288
|
+
rubygems_version: 3.5.11
|
289
|
+
signing_key:
|
289
290
|
specification_version: 4
|
290
291
|
summary: Foreman Plug-in for Salt
|
291
292
|
test_files:
|
292
|
-
- test/
|
293
|
-
- test/unit/highstate.json
|
294
|
-
- test/unit/grains_importer_test.rb
|
295
|
-
- test/unit/salt_keys_test.rb
|
296
|
-
- test/unit/report_importer_test.rb
|
297
|
-
- test/unit/hostgroup_extensions_test.rb
|
298
|
-
- test/unit/salt_modules_test.rb
|
299
|
-
- test/unit/highstate_pchanges.json
|
300
|
-
- test/unit/salt_variables_test.rb
|
301
|
-
- test/unit/highstate_unhandled.json
|
302
|
-
- test/functional/salt_modules_controller_test.rb
|
303
|
-
- test/functional/minions_controller_test.rb
|
304
|
-
- test/functional/hosts_controller_test.rb
|
305
|
-
- test/functional/api/v2/salt_keys_controller_test.rb
|
306
|
-
- test/functional/api/v2/salt_states_controller_test.rb
|
293
|
+
- test/factories/foreman_salt_factories.rb
|
307
294
|
- test/functional/api/v2/salt_autosign_controller_test.rb
|
308
295
|
- test/functional/api/v2/salt_environments_controller_test.rb
|
309
296
|
- test/functional/api/v2/salt_hostgroups_controller_test.rb
|
297
|
+
- test/functional/api/v2/salt_keys_controller_test.rb
|
298
|
+
- test/functional/api/v2/salt_states_controller_test.rb
|
310
299
|
- test/functional/api/v2/salt_variables_controller_test.rb
|
300
|
+
- test/functional/hosts_controller_test.rb
|
301
|
+
- test/functional/minions_controller_test.rb
|
302
|
+
- test/functional/salt_modules_controller_test.rb
|
311
303
|
- test/functional/salt_variables_controller_test.rb
|
304
|
+
- test/integration/hosts_js_test.rb
|
312
305
|
- test/integration/salt_autosign_test.rb
|
313
|
-
- test/integration/salt_variable_test.rb
|
314
306
|
- test/integration/salt_environment_test.rb
|
315
307
|
- test/integration/salt_keys_test.rb
|
316
|
-
- test/integration/hosts_js_test.rb
|
317
308
|
- test/integration/salt_module_test.rb
|
309
|
+
- test/integration/salt_variable_test.rb
|
318
310
|
- test/test_plugin_helper.rb
|
319
|
-
- test/
|
311
|
+
- test/unit/grains_importer_test.rb
|
312
|
+
- test/unit/highstate.json
|
313
|
+
- test/unit/highstate_pchanges.json
|
314
|
+
- test/unit/highstate_unhandled.json
|
315
|
+
- test/unit/host_extensions_test.rb
|
316
|
+
- test/unit/hostgroup_extensions_test.rb
|
317
|
+
- test/unit/report_importer_test.rb
|
318
|
+
- test/unit/salt_keys_test.rb
|
319
|
+
- test/unit/salt_modules_test.rb
|
320
|
+
- test/unit/salt_variables_test.rb
|