foreman_ansible 12.0.1 → 12.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: f19e821339edbf1e3809c4d98980ad5bacfdad1e800e4340b78e66cc27999dd5
4
- data.tar.gz: 1cdc37a5191208d3efbac4230e0e4da3fb4fd4cf70699c6c06423987896033e3
3
+ metadata.gz: 03df3aef02ce7c770649a2cf4c6bcfb87b5eed92b69d99c53b3ca8b2317c06fe
4
+ data.tar.gz: 1438b33c1b9ba4e1c2ac11fd3ff9ef7ad17e1c768aec7b33bb826a4dead48309
5
5
  SHA512:
6
- metadata.gz: 843f29f4593fff05ca7ac7850d9a3f7eb2d418f1b257456ba9d67b2b9957d7423490bcd5d7de1f3ba50cb26f8b5fcdb3e3eedadbce308b090a79e71afbe90d17
7
- data.tar.gz: d974f127e589bbfebd697b3dc3d96de37f7f15178f0d899ab6ca51af14e36e2b760fcc55954354f8f76081518a7205a9a511a819f2dcf262025c336b7236f461
6
+ metadata.gz: c7eab330278a2c9ea01144c6cbcadc160761144f85ac037bddac22bf94b1e2a97ec9559bfac6b8bf47b1bec253c869fce29068b462d58d1f44d2f40a1e91c128
7
+ data.tar.gz: 15262fea70b40690a9a84edc50cf5b9f1f47d57f8345da65ac34accf68b55eeb772b3a65b42acfae5045071cb1780a98e9912e397581b75af2a3f07d60df9429
@@ -66,7 +66,7 @@ module ForemanAnsible
66
66
  process_response @hostgroup.update(:ansible_roles => @ansible_roles)
67
67
  end
68
68
 
69
- api :PUT, '/hostgroups/:id/ansible_roles',
69
+ api :PUT, '/hostgroups/:id/ansible_roles/:ansible_role_id',
70
70
  N_('Directly add an Ansible role to a hostgroup')
71
71
  param :id, :identifier, :required => true
72
72
  param :ansible_role_id, :identifier,
@@ -67,7 +67,7 @@ module ForemanAnsible
67
67
  process_response @host.update(:ansible_roles => @ansible_roles)
68
68
  end
69
69
 
70
- api :PUT, '/hosts/:id/ansible_roles',
70
+ api :PUT, '/hosts/:id/ansible_roles/:ansible_role_id',
71
71
  N_('Directly add an Ansible role to a host')
72
72
  param :id, :identifier, :required => true
73
73
  param :ansible_role_id, :identifier,
data/config/routes.rb CHANGED
@@ -13,7 +13,7 @@ Rails.application.routes.draw do
13
13
  post :play_roles
14
14
  get :ansible_roles
15
15
  post :assign_ansible_roles
16
- put :ansible_roles, :to => 'hosts#add_ansible_role'
16
+ put 'ansible_roles/:ansible_role_id', :to => 'hosts#add_ansible_role', :constraints => { id: %r{[^\/]+} }
17
17
  delete 'ansible_roles/:ansible_role_id', :to => 'hosts#remove_ansible_role', :constraints => { id: %r{[^\/]+} }
18
18
  end
19
19
  collection do
@@ -25,7 +25,7 @@ Rails.application.routes.draw do
25
25
  post :play_roles
26
26
  get :ansible_roles
27
27
  post :assign_ansible_roles
28
- put :ansible_roles, :to => 'hostgroups#add_ansible_role'
28
+ put 'ansible_roles/:ansible_role_id', :to => 'hostgroups#add_ansible_role', :constraints => { id: %r{[^\/]+} }
29
29
  delete 'ansible_roles/:ansible_role_id', :to => 'hostgroups#remove_ansible_role', :constraints => { id: %r{[^\/]+} }
30
30
  end
31
31
  collection do
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '12.0.1'
7
+ VERSION = '12.0.3'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.0.1
4
+ version: 12.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: foreman_remote_execution
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '9.0'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '11'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: '9.0'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '11'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: foreman-tasks
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -494,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
494
500
  - !ruby/object:Gem::Version
495
501
  version: '0'
496
502
  requirements: []
497
- rubygems_version: 3.4.12
503
+ rubygems_version: 3.1.4
498
504
  signing_key:
499
505
  specification_version: 4
500
506
  summary: Ansible integration with Foreman (theforeman.org)
@@ -505,16 +511,16 @@ test_files:
505
511
  - test/factories/host_ansible_enhancements.rb
506
512
  - test/fixtures/insights_playbook.yaml
507
513
  - test/fixtures/playbooks_example_output.json
508
- - test/fixtures/report.json
509
514
  - test/fixtures/sample_facts.json
510
515
  - test/fixtures/sample_playbooks.json
516
+ - test/fixtures/report.json
511
517
  - test/foreman_ansible/helpers/ansible_roles_helper_test.rb
512
518
  - test/functional/ansible_roles_controller_test.rb
513
519
  - test/functional/ansible_variables_controller_test.rb
514
- - test/functional/api/v2/ansible_inventories_controller_test.rb
515
520
  - test/functional/api/v2/ansible_playbooks_controller_test.rb
516
521
  - test/functional/api/v2/ansible_roles_controller_test.rb
517
522
  - test/functional/api/v2/ansible_variables_controller_test.rb
523
+ - test/functional/api/v2/ansible_inventories_controller_test.rb
518
524
  - test/functional/api/v2/hostgroups_controller_test.rb
519
525
  - test/functional/api/v2/hosts_controller_test.rb
520
526
  - test/functional/hosts_controller_test.rb
@@ -522,14 +528,12 @@ test_files:
522
528
  - test/graphql/mutations/hosts/assign_ansible_roles_mutation_test.rb
523
529
  - test/graphql/queries/ansible_roles_query_test.rb
524
530
  - test/graphql/queries/host_ansible_roles_query_test.rb
525
- - test/integration/hostgroup_js_test.rb
526
531
  - test/test_plugin_helper.rb
527
- - test/unit/ansible_provider_test.rb
528
532
  - test/unit/ansible_role_test.rb
529
533
  - test/unit/ansible_variable_test.rb
530
- - test/unit/concerns/config_reports_extensions_test.rb
531
534
  - test/unit/concerns/host_managed_extensions_test.rb
532
535
  - test/unit/concerns/hostgroup_extensions_test.rb
536
+ - test/unit/concerns/config_reports_extensions_test.rb
533
537
  - test/unit/helpers/ansible_reports_helper_test.rb
534
538
  - test/unit/host_ansible_role_test.rb
535
539
  - test/unit/hostgroup_ansible_role_test.rb
@@ -545,3 +549,5 @@ test_files:
545
549
  - test/unit/services/override_resolver_test.rb
546
550
  - test/unit/services/roles_importer_test.rb
547
551
  - test/unit/services/ui_roles_importer_test.rb
552
+ - test/unit/ansible_provider_test.rb
553
+ - test/integration/hostgroup_js_test.rb