foreman_ansible 4.0.3.5 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/ansible_inventories_controller.rb +9 -4
  3. data/app/controllers/api/v2/ansible_roles_controller.rb +2 -2
  4. data/app/controllers/api/v2/ansible_variables_controller.rb +1 -2
  5. data/app/controllers/foreman_ansible/api/v2/hostgroups_controller_extensions.rb +2 -2
  6. data/app/controllers/foreman_ansible/api/v2/hosts_controller_extensions.rb +2 -2
  7. data/app/models/concerns/foreman_ansible/host_managed_extensions.rb +0 -4
  8. data/app/models/foreman_ansible/ansible_provider.rb +8 -0
  9. data/app/models/setting/ansible.rb +1 -5
  10. data/app/services/foreman_ansible/ansible_info.rb +1 -1
  11. data/app/services/foreman_ansible/insights_notification_builder.rb +0 -2
  12. data/app/services/foreman_ansible/operating_system_parser.rb +1 -5
  13. data/app/services/foreman_ansible/variables_importer.rb +9 -9
  14. data/app/views/ansible_variables/_fields.erb +1 -1
  15. data/app/views/foreman_ansible/job_templates/capsule_upgrade_-_ansible_default.erb +71 -0
  16. data/config/routes.rb +1 -3
  17. data/db/migrate/20160802153302_create_join_table_hostgroup_ansible_roles.rb +0 -2
  18. data/db/migrate/20200421201839_update_ansible_inv_template_name.rb +9 -0
  19. data/db/seeds.d/75_job_templates.rb +1 -1
  20. data/lib/foreman_ansible/engine.rb +22 -27
  21. data/lib/foreman_ansible/register.rb +1 -3
  22. data/lib/foreman_ansible/remote_execution.rb +11 -0
  23. data/lib/foreman_ansible/version.rb +1 -1
  24. data/locale/action_names.rb +3 -3
  25. data/locale/ca/LC_MESSAGES/foreman_ansible.mo +0 -0
  26. data/locale/ca/foreman_ansible.po +556 -0
  27. data/locale/cs_CZ/LC_MESSAGES/foreman_ansible.mo +0 -0
  28. data/locale/cs_CZ/foreman_ansible.po +556 -0
  29. data/locale/de/LC_MESSAGES/foreman_ansible.mo +0 -0
  30. data/locale/de/foreman_ansible.po +38 -33
  31. data/locale/en/LC_MESSAGES/foreman_ansible.mo +0 -0
  32. data/locale/en/foreman_ansible.po +38 -33
  33. data/locale/en_GB/LC_MESSAGES/foreman_ansible.mo +0 -0
  34. data/locale/en_GB/foreman_ansible.po +555 -0
  35. data/locale/es/LC_MESSAGES/foreman_ansible.mo +0 -0
  36. data/locale/es/foreman_ansible.po +38 -33
  37. data/locale/foreman_ansible.pot +96 -88
  38. data/locale/fr/LC_MESSAGES/foreman_ansible.mo +0 -0
  39. data/locale/fr/foreman_ansible.po +38 -33
  40. data/locale/gl/LC_MESSAGES/foreman_ansible.mo +0 -0
  41. data/locale/gl/foreman_ansible.po +553 -0
  42. data/locale/it/LC_MESSAGES/foreman_ansible.mo +0 -0
  43. data/locale/it/foreman_ansible.po +38 -33
  44. data/locale/ja/LC_MESSAGES/foreman_ansible.mo +0 -0
  45. data/locale/ja/foreman_ansible.po +38 -33
  46. data/locale/ko/LC_MESSAGES/foreman_ansible.mo +0 -0
  47. data/locale/ko/foreman_ansible.po +38 -33
  48. data/locale/nl_NL/LC_MESSAGES/foreman_ansible.mo +0 -0
  49. data/locale/nl_NL/foreman_ansible.po +559 -0
  50. data/locale/pl/LC_MESSAGES/foreman_ansible.mo +0 -0
  51. data/locale/pl/foreman_ansible.po +556 -0
  52. data/locale/pt_BR/LC_MESSAGES/foreman_ansible.mo +0 -0
  53. data/locale/pt_BR/foreman_ansible.po +38 -33
  54. data/locale/ru/LC_MESSAGES/foreman_ansible.mo +0 -0
  55. data/locale/ru/foreman_ansible.po +38 -33
  56. data/locale/sv_SE/LC_MESSAGES/foreman_ansible.mo +0 -0
  57. data/locale/sv_SE/foreman_ansible.po +556 -0
  58. data/locale/zh_CN/LC_MESSAGES/foreman_ansible.mo +0 -0
  59. data/locale/zh_CN/foreman_ansible.po +38 -33
  60. data/locale/zh_TW/LC_MESSAGES/foreman_ansible.mo +0 -0
  61. data/locale/zh_TW/foreman_ansible.po +38 -33
  62. data/package.json +14 -16
  63. data/test/factories/ansible_variables.rb +5 -0
  64. data/test/functional/api/v2/ansible_inventories_controller_test.rb +3 -3
  65. data/test/functional/api/v2/ansible_variables_controller_test.rb +12 -0
  66. data/test/unit/services/ansible_variables_importer_test.rb +68 -43
  67. data/test/unit/services/inventory_creator_test.rb +0 -4
  68. data/webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcher.js +1 -0
  69. data/webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.js +5 -1
  70. data/webpack/components/AnsibleRolesSwitcher/components/AssignedRolesList.test.js +8 -1
  71. data/webpack/components/AnsibleRolesSwitcher/index.js +1 -4
  72. data/webpack/test_setup.js +2 -1
  73. metadata +54 -80
  74. data/locale/de/foreman_ansible.edit.po +0 -825
  75. data/locale/de/foreman_ansible.po.time_stamp +0 -0
  76. data/locale/en/foreman_ansible.edit.po +0 -714
  77. data/locale/en/foreman_ansible.po.time_stamp +0 -0
  78. data/locale/es/foreman_ansible.edit.po +0 -845
  79. data/locale/es/foreman_ansible.po.time_stamp +0 -0
  80. data/locale/fr/foreman_ansible.edit.po +0 -847
  81. data/locale/fr/foreman_ansible.po.time_stamp +0 -0
  82. data/locale/it/foreman_ansible.edit.po +0 -818
  83. data/locale/it/foreman_ansible.po.time_stamp +0 -0
  84. data/locale/ja/foreman_ansible.edit.po +0 -818
  85. data/locale/ja/foreman_ansible.po.time_stamp +0 -0
  86. data/locale/ko/foreman_ansible.edit.po +0 -804
  87. data/locale/ko/foreman_ansible.po.time_stamp +0 -0
  88. data/locale/pt_BR/foreman_ansible.edit.po +0 -845
  89. data/locale/pt_BR/foreman_ansible.po.time_stamp +0 -0
  90. data/locale/ru/foreman_ansible.edit.po +0 -819
  91. data/locale/ru/foreman_ansible.po.time_stamp +0 -0
  92. data/locale/zh_CN/foreman_ansible.edit.po +0 -813
  93. data/locale/zh_CN/foreman_ansible.po.time_stamp +0 -0
  94. data/locale/zh_TW/foreman_ansible.edit.po +0 -804
  95. data/locale/zh_TW/foreman_ansible.po.time_stamp +0 -0