foreman_ansible 13.0.3 → 14.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ui_ansible_roles_controller.rb +2 -2
- data/app/services/foreman_ansible/inventory_creator.rb +1 -1
- data/app/views/foreman_ansible/job_templates/package_action_-_ansible_default.erb +2 -3
- data/lib/foreman_ansible/register.rb +1 -1
- data/lib/foreman_ansible/version.rb +1 -1
- data/webpack/testHelper.js +9 -8
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173634631b4f95f6e86f02775e026c17ba5a9a9f57d99e3f5491b57c89d8c9ca
|
4
|
+
data.tar.gz: 7dc19084e2cae6883903ef8cbb17fa221e9aea972efa851da351022989e603c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e16ac25e290b715368ea2d5a315aca31bd8c6723f9f19a974efedd926710c145c3f8532e33259599117d36497d7d0899783c324fa7db6ab3c2f035b2dfa4ecff
|
7
|
+
data.tar.gz: b492b84c46d9633770d1f75a7c151f7e4d55c52c1da465d834184248e66b0b1e6fe5a709376916142b29669f4bdb704ed9d5f2271be534387a3bdb86a7249adb
|
@@ -8,7 +8,7 @@ class UiAnsibleRolesController < ::Api::V2::BaseController
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# restore original method from find_common to ignore resource nesting
|
11
|
-
def resource_scope(
|
12
|
-
@resource_scope ||= scope_for(resource_class,
|
11
|
+
def resource_scope(**kwargs)
|
12
|
+
@resource_scope ||= scope_for(resource_class, **kwargs)
|
13
13
|
end
|
14
14
|
end
|
@@ -97,7 +97,7 @@ module ForemanAnsible
|
|
97
97
|
|
98
98
|
def remote_execution_options(host)
|
99
99
|
params = {
|
100
|
-
'ansible_user' => host_setting(host, 'remote_execution_ssh_user'),
|
100
|
+
'ansible_user' => @template_invocation&.job_invocation&.ssh_user || host_setting(host, 'remote_execution_ssh_user'),
|
101
101
|
'ansible_become_method' => host_setting(host, 'remote_execution_effective_user_method'),
|
102
102
|
'ansible_ssh_private_key_file' => ansible_ssh_private_key(host),
|
103
103
|
'ansible_port' => host_setting(host, 'remote_execution_ssh_port'),
|
@@ -30,8 +30,7 @@ template_inputs:
|
|
30
30
|
provider_type: Ansible
|
31
31
|
kind: job_template
|
32
32
|
model: JobTemplate
|
33
|
-
|
34
|
-
|
33
|
+
-%>
|
35
34
|
# For Windows targets use the win_package module instead.
|
36
35
|
---
|
37
36
|
- hosts: all
|
@@ -41,7 +40,7 @@ model: JobTemplate
|
|
41
40
|
<%- end -%>
|
42
41
|
tasks:
|
43
42
|
- package:
|
44
|
-
|
43
|
+
<%= indent(8) { to_yaml({"name" => input('name')}).gsub(/---\n/, '') } -%>
|
45
44
|
state: <%= input('state') %>
|
46
45
|
<%- if input('post_script').present? -%>
|
47
46
|
post_tasks:
|
data/webpack/testHelper.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import React from 'react';
|
1
|
+
import React, { useState } from 'react';
|
2
2
|
import { Provider } from 'react-redux';
|
3
3
|
import thunk from 'redux-thunk';
|
4
4
|
import { applyMiddleware, createStore, compose, combineReducers } from 'redux';
|
@@ -42,20 +42,21 @@ export const withReactRouter = Component => props => {
|
|
42
42
|
};
|
43
43
|
|
44
44
|
export const withMockedProvider = Component => props => {
|
45
|
-
const
|
46
|
-
// eslint-disable-next-line react/prop-types
|
47
|
-
const { mocks, ...rest } = props;
|
48
|
-
|
49
|
-
const ctx = {
|
45
|
+
const [context, setContext] = useState({
|
50
46
|
metadata: {
|
51
47
|
UISettings: {
|
52
48
|
perPage: 20,
|
53
49
|
},
|
54
50
|
},
|
55
|
-
};
|
51
|
+
});
|
52
|
+
const contextData = { context, setContext };
|
53
|
+
const ForemanContext = getForemanContext(contextData);
|
54
|
+
|
55
|
+
// eslint-disable-next-line react/prop-types
|
56
|
+
const { mocks, ...rest } = props;
|
56
57
|
|
57
58
|
return (
|
58
|
-
<ForemanContext.Provider value={
|
59
|
+
<ForemanContext.Provider value={contextData}>
|
59
60
|
<MockedProvider mocks={mocks}>
|
60
61
|
<Component {...rest} />
|
61
62
|
</MockedProvider>
|
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:
|
4
|
+
version: 14.0.0
|
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: 2024-
|
11
|
+
date: 2024-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: '9.0'
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '14'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '9.0'
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '14'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: foreman-tasks
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -500,7 +500,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
500
500
|
- !ruby/object:Gem::Version
|
501
501
|
version: '0'
|
502
502
|
requirements: []
|
503
|
-
rubygems_version: 3.
|
503
|
+
rubygems_version: 3.2.3
|
504
504
|
signing_key:
|
505
505
|
specification_version: 4
|
506
506
|
summary: Ansible integration with Foreman (theforeman.org)
|
@@ -511,23 +511,26 @@ test_files:
|
|
511
511
|
- test/factories/host_ansible_enhancements.rb
|
512
512
|
- test/fixtures/insights_playbook.yaml
|
513
513
|
- test/fixtures/playbooks_example_output.json
|
514
|
+
- test/fixtures/report.json
|
514
515
|
- test/fixtures/sample_facts.json
|
515
516
|
- test/fixtures/sample_playbooks.json
|
516
|
-
- test/fixtures/report.json
|
517
517
|
- test/foreman_ansible/helpers/ansible_roles_helper_test.rb
|
518
518
|
- test/functional/ansible_roles_controller_test.rb
|
519
519
|
- test/functional/ansible_variables_controller_test.rb
|
520
|
+
- test/functional/api/v2/ansible_inventories_controller_test.rb
|
520
521
|
- test/functional/api/v2/ansible_playbooks_controller_test.rb
|
521
522
|
- test/functional/api/v2/ansible_roles_controller_test.rb
|
522
523
|
- test/functional/api/v2/ansible_variables_controller_test.rb
|
523
524
|
- test/functional/api/v2/hostgroups_controller_test.rb
|
524
525
|
- test/functional/api/v2/hosts_controller_test.rb
|
525
|
-
- test/functional/api/v2/ansible_inventories_controller_test.rb
|
526
526
|
- test/functional/hosts_controller_test.rb
|
527
527
|
- test/functional/ui_ansible_roles_controller_test.rb
|
528
528
|
- test/graphql/mutations/hosts/assign_ansible_roles_mutation_test.rb
|
529
529
|
- test/graphql/queries/ansible_roles_query_test.rb
|
530
530
|
- test/graphql/queries/host_ansible_roles_query_test.rb
|
531
|
+
- test/integration/hostgroup_js_test.rb
|
532
|
+
- test/test_plugin_helper.rb
|
533
|
+
- test/unit/ansible_provider_test.rb
|
531
534
|
- test/unit/ansible_role_test.rb
|
532
535
|
- test/unit/ansible_variable_test.rb
|
533
536
|
- test/unit/concerns/config_reports_extensions_test.rb
|
@@ -548,6 +551,3 @@ test_files:
|
|
548
551
|
- test/unit/services/override_resolver_test.rb
|
549
552
|
- test/unit/services/roles_importer_test.rb
|
550
553
|
- test/unit/services/ui_roles_importer_test.rb
|
551
|
-
- test/unit/ansible_provider_test.rb
|
552
|
-
- test/integration/hostgroup_js_test.rb
|
553
|
-
- test/test_plugin_helper.rb
|