foreman_ansible 6.3.0 → 6.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3986780692ba4ebf7918705dc78a06b637e5032371de0b0ed29b74d312ce42ed
|
4
|
+
data.tar.gz: 852691a29487743f21a60c259e3dcbcfbea488df3bbe634b77712e3968090e67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1987573ed7c1b76377ac756e2d4f01b65f84dd30f0e7d536e12c35f53724a94526701f9f6f179b5af765353ddd087579df62ebbe4b7dcc35f0436cc9834db2f
|
7
|
+
data.tar.gz: 6ad6a28153b718cdd9cbc251c53901072c4413df3fb82d25065c6014ba67124525c1151250954a5fe8c0dd4d081b7e3b1d515c9c38c4f7d57f5f0eeccaccd172
|
@@ -6,7 +6,7 @@ module ForemanAnsible
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
included do
|
9
|
-
has_many :hostgroup_ansible_roles, :foreign_key => :hostgroup_id
|
9
|
+
has_many :hostgroup_ansible_roles, -> { order('hostgroup_ansible_roles.position ASC') }, :foreign_key => :hostgroup_id
|
10
10
|
has_many :ansible_roles,
|
11
11
|
-> { order('hostgroup_ansible_roles.position ASC') },
|
12
12
|
:through => :hostgroup_ansible_roles,
|
@@ -34,7 +34,7 @@ kind: job_template
|
|
34
34
|
url: <%= subscription_manager_configuration_url(@host) %>
|
35
35
|
dest: /usr/share/convert2rhel/subscription-manager/katello-ca-consumer-latest.noarch.rpm
|
36
36
|
- name: Start convert2rhel
|
37
|
-
command: convert2rhel -y --activationkey "<%= input('Activation Key') %>" --org "<%= @host.organization.label %>"
|
37
|
+
command: convert2rhel -y --activationkey "<%= input('Activation Key') %>" --org "<%= @host.organization.label %>" --keep-rhsm
|
38
38
|
<%- if input('Restart') == "yes" -%>
|
39
39
|
- name: Reboot the machine
|
40
40
|
reboot:
|
@@ -19,4 +19,17 @@ class HostgroupAnsibleRoleTest < ActiveSupport::TestCase
|
|
19
19
|
end
|
20
20
|
should validate_uniqueness_of(:ansible_role_id).scoped_to(:hostgroup_id)
|
21
21
|
end
|
22
|
+
|
23
|
+
describe 'ordering' do
|
24
|
+
test 'should list roles in correct order' do
|
25
|
+
hg = FactoryBot.create(:hostgroup)
|
26
|
+
5.times do |idx|
|
27
|
+
HostgroupAnsibleRole.create(:hostgroup => hg, :ansible_role => FactoryBot.create(:ansible_role), :position => idx)
|
28
|
+
end
|
29
|
+
|
30
|
+
hg.hostgroup_ansible_roles.each_with_index do |item, idx|
|
31
|
+
assert_equal(item.position, idx + 1)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
22
35
|
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: 6.3.
|
4
|
+
version: 6.3.1
|
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: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman_ansible_core
|
@@ -389,54 +389,54 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
389
389
|
- !ruby/object:Gem::Version
|
390
390
|
version: '0'
|
391
391
|
requirements: []
|
392
|
-
rubygems_version: 3.1.
|
392
|
+
rubygems_version: 3.1.6
|
393
393
|
signing_key:
|
394
394
|
specification_version: 4
|
395
395
|
summary: Ansible integration with Foreman (theforeman.org)
|
396
396
|
test_files:
|
397
|
-
- test/
|
398
|
-
- test/factories/ansible_variables.rb
|
399
|
-
- test/factories/ansible_roles.rb
|
400
|
-
- test/factories/host_ansible_enhancements.rb
|
401
|
-
- test/fixtures/insights_playbook.yaml
|
402
|
-
- test/fixtures/report.json
|
403
|
-
- test/fixtures/sample_facts.json
|
397
|
+
- test/functional/ansible_variables_controller_test.rb
|
404
398
|
- test/functional/ansible_roles_controller_test.rb
|
405
|
-
- test/functional/api/v2/ansible_inventories_controller_test.rb
|
406
399
|
- test/functional/api/v2/ansible_variables_controller_test.rb
|
400
|
+
- test/functional/api/v2/ansible_roles_controller_test.rb
|
407
401
|
- test/functional/api/v2/hostgroups_controller_test.rb
|
402
|
+
- test/functional/api/v2/ansible_inventories_controller_test.rb
|
408
403
|
- test/functional/api/v2/hosts_controller_test.rb
|
409
|
-
- test/functional/api/v2/ansible_roles_controller_test.rb
|
410
404
|
- test/functional/ui_ansible_roles_controller_test.rb
|
411
|
-
- test/functional/ansible_variables_controller_test.rb
|
412
405
|
- test/functional/hosts_controller_test.rb
|
413
|
-
- test/
|
406
|
+
- test/foreman_ansible/helpers/ansible_roles_helper_test.rb
|
414
407
|
- test/unit/actions/run_ansible_job_test.rb
|
415
408
|
- test/unit/actions/run_proxy_ansible_command_test.rb
|
416
|
-
- test/unit/
|
417
|
-
- test/unit/
|
418
|
-
- test/unit/
|
419
|
-
- test/unit/concerns/host_managed_extensions_test.rb
|
420
|
-
- test/unit/concerns/hostgroup_extensions_test.rb
|
421
|
-
- test/unit/helpers/ansible_reports_helper_test.rb
|
422
|
-
- test/unit/lib/foreman_ansible_core/command_creator_test.rb
|
423
|
-
- test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
|
424
|
-
- test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
|
425
|
-
- test/unit/lib/proxy_api/ansible_test.rb
|
409
|
+
- test/unit/services/api_roles_importer_test.rb
|
410
|
+
- test/unit/services/ui_roles_importer_test.rb
|
411
|
+
- test/unit/services/structured_fact_importer_test.rb
|
426
412
|
- test/unit/services/ansible_report_importer_test.rb
|
427
|
-
- test/unit/services/fact_importer_test.rb
|
428
|
-
- test/unit/services/fact_sparser_test.rb
|
429
413
|
- test/unit/services/insights_plan_runner_test.rb
|
430
|
-
- test/unit/services/
|
431
|
-
- test/unit/services/structured_fact_importer_test.rb
|
432
|
-
- test/unit/services/ansible_variables_importer_test.rb
|
433
|
-
- test/unit/services/ui_roles_importer_test.rb
|
434
|
-
- test/unit/services/api_roles_importer_test.rb
|
414
|
+
- test/unit/services/fact_importer_test.rb
|
435
415
|
- test/unit/services/fact_parser_test.rb
|
416
|
+
- test/unit/services/roles_importer_test.rb
|
417
|
+
- test/unit/services/fact_sparser_test.rb
|
436
418
|
- test/unit/services/inventory_creator_test.rb
|
437
|
-
- test/unit/
|
438
|
-
- test/unit/
|
419
|
+
- test/unit/services/ansible_variables_importer_test.rb
|
420
|
+
- test/unit/lib/foreman_ansible_core/command_creator_test.rb
|
421
|
+
- test/unit/lib/foreman_ansible_core/ansible_runner_test.rb
|
422
|
+
- test/unit/lib/foreman_ansible_core/playbook_runner_test.rb
|
423
|
+
- test/unit/lib/proxy_api/ansible_test.rb
|
424
|
+
- test/unit/ansible_role_test.rb
|
439
425
|
- test/unit/hostgroup_ansible_role_test.rb
|
440
|
-
- test/unit/
|
426
|
+
- test/unit/ansible_variable_test.rb
|
427
|
+
- test/unit/host_ansible_role_test.rb
|
428
|
+
- test/unit/helpers/ansible_reports_helper_test.rb
|
429
|
+
- test/unit/ansible_provider_test.rb
|
441
430
|
- test/unit/ignore_roles_test.rb
|
442
|
-
- test/
|
431
|
+
- test/unit/import_roles_and_variables.rb
|
432
|
+
- test/unit/concerns/config_reports_extensions_test.rb
|
433
|
+
- test/unit/concerns/host_managed_extensions_test.rb
|
434
|
+
- test/unit/concerns/hostgroup_extensions_test.rb
|
435
|
+
- test/factories/ansible_proxy.rb
|
436
|
+
- test/factories/host_ansible_enhancements.rb
|
437
|
+
- test/factories/ansible_variables.rb
|
438
|
+
- test/factories/ansible_roles.rb
|
439
|
+
- test/fixtures/report.json
|
440
|
+
- test/fixtures/sample_facts.json
|
441
|
+
- test/fixtures/insights_playbook.yaml
|
442
|
+
- test/test_plugin_helper.rb
|