foreman_salt 16.0.1 → 16.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95381aab8500525c98ddc2478fbc3b1026df4877a258cbd33118443420056ba3
4
- data.tar.gz: 8a6e0a1d5de930a51ac2a30b3d1bafa45bf5a401df62ab9617a793620a3bc318
3
+ metadata.gz: c7ec0e847a86177e0e123bada956cd657d72ff67cc483cc67c7662ff8e3334e6
4
+ data.tar.gz: 238933ef2aca2375a075cf7b3862901cba9126670f73b435d588a297e9435e20
5
5
  SHA512:
6
- metadata.gz: 7df537c8b257cf3e90b62713849ce48424e77262408aa82c71cc09df958ab3593e0969677fa22e9f86a21720eb6114a2457186544be8cb6fe7456117cd8281d9
7
- data.tar.gz: 0fec2f56e2733ee848f6958484cd38641a4450408665547ae8b3d551ce58e293f73a3cb700c40d490e91c8f202d7a73995fc2cdca7fa4696876a1e09c6f22d0b
6
+ metadata.gz: a3d0daed6e32f1ce780e170b00c09253566c246f91f65631a6332447c9d5dd748b9a09ca93e3af8ec132ffaa2a8cc3787666de2dbbe7e619e525b5cb761b1b98
7
+ data.tar.gz: 7e11f6675013de8d95642441e889de6d572f33fa24d75fd86d9e78aeaececeef6b13747bb013f691963f8f7f687cd39e5a7e54d80fc1058adf3137eb83fd8203
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) 2023 The Foreman community
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/Managing_Hosts/index-foreman-el.html#Using_Salt_for_Configuration_Management_managing-hosts'
7
+ 'https://docs.theforeman.org/nightly/Managing_Configurations_Salt/index-foreman-el.html'
8
8
  end
9
9
  end
10
10
  end
@@ -49,7 +49,7 @@ module ::ProxyAPI
49
49
  states = {}
50
50
 
51
51
  environments_list.each do |environment|
52
- states[environment] = parse(get("environments/#{environment}"))
52
+ states[environment] = parse(get("environments/#{CGI.escape(environment)}"))
53
53
  end
54
54
 
55
55
  states
@@ -11,7 +11,7 @@ module ForemanSalt
11
11
  has_many :salt_module_environments
12
12
  has_many :salt_modules, through: :salt_module_environments, before_remove: :remove_from_hosts
13
13
 
14
- validates :name, uniqueness: true, presence: true, format: { with: /\A[\w\d.]+\z/, message: N_('is alphanumeric and cannot contain spaces') }
14
+ validates :name, uniqueness: true, presence: true, format: { with: /\A[\w\d\-.]+\z/, message: N_('is alphanumeric and cannot contain spaces') }
15
15
 
16
16
  scoped_search on: :name, complete_value: true
17
17
  scoped_search relation: :hostgroups, on: :name, complete_value: true, rename: :hostgroup
@@ -1,3 +1,3 @@
1
1
  module ForemanSalt
2
- VERSION = '16.0.1'.freeze
2
+ VERSION = '16.0.3'.freeze
3
3
  end
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: 16.0.1
4
+ version: 16.0.3
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-03-18 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -269,7 +269,7 @@ homepage: https://github.com/theforeman/foreman_salt
269
269
  licenses:
270
270
  - GPL-3.0
271
271
  metadata: {}
272
- post_install_message:
272
+ post_install_message:
273
273
  rdoc_options: []
274
274
  require_paths:
275
275
  - lib
@@ -284,36 +284,36 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0'
286
286
  requirements: []
287
- rubygems_version: 3.4.10
288
- signing_key:
287
+ rubygems_version: 3.1.2
288
+ signing_key:
289
289
  specification_version: 4
290
290
  summary: Foreman Plug-in for Salt
291
291
  test_files:
292
- - test/factories/foreman_salt_factories.rb
292
+ - test/unit/host_extensions_test.rb
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
307
  - test/functional/api/v2/salt_autosign_controller_test.rb
294
308
  - test/functional/api/v2/salt_environments_controller_test.rb
295
309
  - test/functional/api/v2/salt_hostgroups_controller_test.rb
296
- - test/functional/api/v2/salt_keys_controller_test.rb
297
- - test/functional/api/v2/salt_states_controller_test.rb
298
310
  - test/functional/api/v2/salt_variables_controller_test.rb
299
- - test/functional/hosts_controller_test.rb
300
- - test/functional/minions_controller_test.rb
301
- - test/functional/salt_modules_controller_test.rb
302
311
  - test/functional/salt_variables_controller_test.rb
303
- - test/integration/hosts_js_test.rb
304
312
  - test/integration/salt_autosign_test.rb
313
+ - test/integration/salt_variable_test.rb
305
314
  - test/integration/salt_environment_test.rb
306
315
  - test/integration/salt_keys_test.rb
316
+ - test/integration/hosts_js_test.rb
307
317
  - test/integration/salt_module_test.rb
308
- - test/integration/salt_variable_test.rb
309
318
  - test/test_plugin_helper.rb
310
- - test/unit/grains_importer_test.rb
311
- - test/unit/highstate.json
312
- - test/unit/highstate_pchanges.json
313
- - test/unit/highstate_unhandled.json
314
- - test/unit/host_extensions_test.rb
315
- - test/unit/hostgroup_extensions_test.rb
316
- - test/unit/report_importer_test.rb
317
- - test/unit/salt_keys_test.rb
318
- - test/unit/salt_modules_test.rb
319
- - test/unit/salt_variables_test.rb
319
+ - test/factories/foreman_salt_factories.rb