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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_ansible/locale/ca/foreman_ansible.js +359 -386
  3. data/app/assets/javascripts/foreman_ansible/locale/cs_CZ/foreman_ansible.js +443 -470
  4. data/app/assets/javascripts/foreman_ansible/locale/de/foreman_ansible.js +518 -545
  5. data/app/assets/javascripts/foreman_ansible/locale/en/foreman_ansible.js +291 -318
  6. data/app/assets/javascripts/foreman_ansible/locale/en_GB/foreman_ansible.js +317 -344
  7. data/app/assets/javascripts/foreman_ansible/locale/es/foreman_ansible.js +580 -607
  8. data/app/assets/javascripts/foreman_ansible/locale/fr/foreman_ansible.js +582 -609
  9. data/app/assets/javascripts/foreman_ansible/locale/gl/foreman_ansible.js +333 -360
  10. data/app/assets/javascripts/foreman_ansible/locale/it/foreman_ansible.js +395 -422
  11. data/app/assets/javascripts/foreman_ansible/locale/ja/foreman_ansible.js +582 -609
  12. data/app/assets/javascripts/foreman_ansible/locale/ka/foreman_ansible.js +575 -602
  13. data/app/assets/javascripts/foreman_ansible/locale/ko/foreman_ansible.js +402 -429
  14. data/app/assets/javascripts/foreman_ansible/locale/nl_NL/foreman_ansible.js +350 -377
  15. data/app/assets/javascripts/foreman_ansible/locale/pl/foreman_ansible.js +369 -396
  16. data/app/assets/javascripts/foreman_ansible/locale/pt_BR/foreman_ansible.js +580 -607
  17. data/app/assets/javascripts/foreman_ansible/locale/ru/foreman_ansible.js +391 -418
  18. data/app/assets/javascripts/foreman_ansible/locale/sv_SE/foreman_ansible.js +335 -362
  19. data/app/assets/javascripts/foreman_ansible/locale/zh_CN/foreman_ansible.js +584 -611
  20. data/app/assets/javascripts/foreman_ansible/locale/zh_TW/foreman_ansible.js +402 -429
  21. data/app/models/ansible_role.rb +3 -0
  22. data/app/models/ansible_variable.rb +4 -0
  23. data/app/models/host_ansible_role.rb +6 -0
  24. data/app/views/foreman_ansible/job_templates/capsule_update_-_ansible_default.erb +73 -0
  25. data/app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb +1 -3
  26. data/app/views/job_templates/_job_template_callback_tab_headers.html.erb +2 -2
  27. data/lib/foreman_ansible/remote_execution.rb +6 -0
  28. data/lib/foreman_ansible/version.rb +1 -1
  29. data/locale/ca/foreman_ansible.po +6 -33
  30. data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
  31. data/locale/cs_CZ/foreman_ansible.po +6 -33
  32. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  33. data/locale/de/foreman_ansible.po +6 -33
  34. data/locale/en/foreman_ansible.po +6 -33
  35. data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
  36. data/locale/en_GB/foreman_ansible.po +6 -33
  37. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  38. data/locale/es/foreman_ansible.po +6 -33
  39. data/locale/foreman_ansible.pot +47 -85
  40. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  41. data/locale/fr/foreman_ansible.po +6 -33
  42. data/locale/gl/foreman_ansible.po +6 -33
  43. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  44. data/locale/it/foreman_ansible.po +6 -33
  45. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  46. data/locale/ja/foreman_ansible.po +6 -33
  47. data/locale/ka/LC_MESSAGES/foreman_ansible.mo +0 -0
  48. data/locale/ka/foreman_ansible.po +6 -33
  49. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  50. data/locale/ko/foreman_ansible.po +6 -33
  51. data/locale/nl_NL/foreman_ansible.po +6 -33
  52. data/locale/pl/foreman_ansible.po +6 -33
  53. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  54. data/locale/pt_BR/foreman_ansible.po +6 -33
  55. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  56. data/locale/ru/foreman_ansible.po +6 -33
  57. data/locale/sv_SE/foreman_ansible.po +6 -33
  58. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  59. data/locale/zh_CN/foreman_ansible.po +6 -33
  60. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  61. data/locale/zh_TW/foreman_ansible.po +6 -33
  62. data/test/unit/host_ansible_role_test.rb +30 -0
  63. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/AnsibleVariableOverridesTableHelper.js +3 -2
  64. data/webpack/components/AnsibleHostDetail/components/AnsibleVariableOverrides/__test__/AnsibleVariableOverrides.fixtures.js +1 -0
  65. data/webpack/graphql/mutations/deleteAnsibleVariableOverride.gql +1 -0
  66. metadata +18 -4
  67. 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.currentValue.value);
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 === variable.currentValue.value &&
63
+ isEqual(item.value, variable.currentValue.value) &&
63
64
  item.match === `fqdn=${hostname}`
64
65
  );
65
66
 
@@ -309,6 +309,7 @@ export const deleteMocks = [
309
309
  overridenAnsibleVariable: {
310
310
  __typename: 'OverridenAnsibleVariable',
311
311
  id: ansibleVariableId,
312
+ defaultValue: 101,
312
313
  currentValue: {
313
314
  __typename: 'AnsibleVariableOverride',
314
315
  element: 'os',
@@ -3,6 +3,7 @@ mutation DeleteAnsibleVariableOverride($id: ID!, $hostId: Int!, $variableId: Int
3
3
  id
4
4
  overridenAnsibleVariable {
5
5
  id
6
+ defaultValue
6
7
  currentValue {
7
8
  value
8
9
  element
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.0
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-01 00:00:00.000000000 Z
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.33
513
+ rubygems_version: 3.2.3
500
514
  signing_key:
501
515
  specification_version: 4
502
516
  summary: Ansible integration with Foreman (theforeman.org)
@@ -1,7 +0,0 @@
1
- # Autogenerated!
2
- _("Action with sub plans")
3
- _("Check for long running tasks")
4
- _("Deliver notifications about long running tasks")
5
- _("Import Puppet classes")
6
- _("Import facts")
7
- _("Remote action:")