foreman_ansible 14.2.0 → 14.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_ansible/locale/ca/foreman_ansible.js +359 -386
- data/app/assets/javascripts/foreman_ansible/locale/cs_CZ/foreman_ansible.js +443 -470
- data/app/assets/javascripts/foreman_ansible/locale/de/foreman_ansible.js +518 -545
- data/app/assets/javascripts/foreman_ansible/locale/en/foreman_ansible.js +291 -318
- data/app/assets/javascripts/foreman_ansible/locale/en_GB/foreman_ansible.js +317 -344
- data/app/assets/javascripts/foreman_ansible/locale/es/foreman_ansible.js +580 -607
- data/app/assets/javascripts/foreman_ansible/locale/fr/foreman_ansible.js +582 -609
- data/app/assets/javascripts/foreman_ansible/locale/gl/foreman_ansible.js +333 -360
- data/app/assets/javascripts/foreman_ansible/locale/it/foreman_ansible.js +395 -422
- data/app/assets/javascripts/foreman_ansible/locale/ja/foreman_ansible.js +582 -609
- data/app/assets/javascripts/foreman_ansible/locale/ka/foreman_ansible.js +575 -602
- data/app/assets/javascripts/foreman_ansible/locale/ko/foreman_ansible.js +402 -429
- data/app/assets/javascripts/foreman_ansible/locale/nl_NL/foreman_ansible.js +350 -377
- data/app/assets/javascripts/foreman_ansible/locale/pl/foreman_ansible.js +369 -396
- data/app/assets/javascripts/foreman_ansible/locale/pt_BR/foreman_ansible.js +580 -607
- data/app/assets/javascripts/foreman_ansible/locale/ru/foreman_ansible.js +391 -418
- data/app/assets/javascripts/foreman_ansible/locale/sv_SE/foreman_ansible.js +335 -362
- data/app/assets/javascripts/foreman_ansible/locale/zh_CN/foreman_ansible.js +584 -611
- data/app/assets/javascripts/foreman_ansible/locale/zh_TW/foreman_ansible.js +402 -429
- data/app/models/ansible_role.rb +3 -0
- data/app/models/ansible_variable.rb +4 -0
- data/app/models/host_ansible_role.rb +6 -0
- data/app/views/foreman_ansible/job_templates/capsule_update_-_ansible_default.erb +73 -0
- data/app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb +1 -3
- data/app/views/job_templates/_job_template_callback_tab_headers.html.erb +2 -2
- data/lib/foreman_ansible/remote_execution.rb +6 -0
- data/lib/foreman_ansible/version.rb +1 -1
- data/locale/ca/foreman_ansible.po +6 -33
- data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/cs_CZ/foreman_ansible.po +6 -33
- data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/de/foreman_ansible.po +6 -33
- data/locale/en/foreman_ansible.po +6 -33
- data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/en_GB/foreman_ansible.po +6 -33
- data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/es/foreman_ansible.po +6 -33
- data/locale/foreman_ansible.pot +47 -85
- data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/fr/foreman_ansible.po +6 -33
- data/locale/gl/foreman_ansible.po +6 -33
- data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/it/foreman_ansible.po +6 -33
- data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ja/foreman_ansible.po +6 -33
- data/locale/ka/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ka/foreman_ansible.po +6 -33
- data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ko/foreman_ansible.po +6 -33
- data/locale/nl_NL/foreman_ansible.po +6 -33
- data/locale/pl/foreman_ansible.po +6 -33
- data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/pt_BR/foreman_ansible.po +6 -33
- data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/ru/foreman_ansible.po +6 -33
- data/locale/sv_SE/foreman_ansible.po +6 -33
- data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/zh_CN/foreman_ansible.po +6 -33
- data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
- data/locale/zh_TW/foreman_ansible.po +6 -33
- data/test/unit/host_ansible_role_test.rb +30 -0
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/AnsibleVariableOverridesTableHelper.js +3 -2
- data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverrides.fixtures.js +1 -0
- data/webpack/graphql/mutations/deleteAnsibleVariableOverride.gql +1 -0
- metadata +18 -4
- data/locale/action_names.rb +0 -7
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import { isEqual } from 'lodash';
|
2
3
|
import { TimesIcon, CheckIcon } from '@patternfly/react-icons';
|
3
4
|
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
|
4
5
|
|
@@ -48,7 +49,7 @@ export const onCompleted = onSubmitSuccess => response => {
|
|
48
49
|
message: formatError(joinErrors(errors)),
|
49
50
|
});
|
50
51
|
} else {
|
51
|
-
onSubmitSuccess(overridenAnsibleVariable.
|
52
|
+
onSubmitSuccess(overridenAnsibleVariable.defaultValue);
|
52
53
|
showToast({
|
53
54
|
type: 'success',
|
54
55
|
message: __('Ansible variable override was successfully deleted.'),
|
@@ -59,7 +60,7 @@ export const onCompleted = onSubmitSuccess => response => {
|
|
59
60
|
export const findOverride = (variable, hostname) =>
|
60
61
|
variable.lookupValues.nodes.find(
|
61
62
|
item =>
|
62
|
-
item.value
|
63
|
+
isEqual(item.value, variable.currentValue.value) &&
|
63
64
|
item.match === `fqdn=${hostname}`
|
64
65
|
);
|
65
66
|
|
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: 14.2.
|
4
|
+
version: 14.2.2
|
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-08
|
11
|
+
date: 2024-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: acts_as_list
|
@@ -78,6 +78,20 @@ dependencies:
|
|
78
78
|
- - "<"
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '10'
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: theforeman-rubocop
|
83
|
+
requirement: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - "~>"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 0.1.0
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - "~>"
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.1.0
|
81
95
|
description: Ansible integration with Foreman
|
82
96
|
email:
|
83
97
|
- elobatocs@gmail.com
|
@@ -217,6 +231,7 @@ files:
|
|
217
231
|
- app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_galaxy.erb
|
218
232
|
- app/views/foreman_ansible/job_templates/ansible_roles_-_install_from_git.erb
|
219
233
|
- app/views/foreman_ansible/job_templates/ansible_windows_updates.erb
|
234
|
+
- app/views/foreman_ansible/job_templates/capsule_update_-_ansible_default.erb
|
220
235
|
- app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb
|
221
236
|
- app/views/foreman_ansible/job_templates/convert_to_rhel.erb
|
222
237
|
- app/views/foreman_ansible/job_templates/download_and_execute_script.erb
|
@@ -264,7 +279,6 @@ files:
|
|
264
279
|
- lib/foreman_ansible/remote_execution.rb
|
265
280
|
- lib/foreman_ansible/version.rb
|
266
281
|
- locale/Makefile
|
267
|
-
- locale/action_names.rb
|
268
282
|
- locale/ca/LC_MESSAGES/foreman_ansible.mo
|
269
283
|
- locale/ca/foreman_ansible.po
|
270
284
|
- locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo
|
@@ -496,7 +510,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
496
510
|
- !ruby/object:Gem::Version
|
497
511
|
version: '0'
|
498
512
|
requirements: []
|
499
|
-
rubygems_version: 3.2.
|
513
|
+
rubygems_version: 3.2.3
|
500
514
|
signing_key:
|
501
515
|
specification_version: 4
|
502
516
|
summary: Ansible integration with Foreman (theforeman.org)
|