foreman_virt_who_configure 0.5.15 → 0.5.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_virt_who_configure/config_edit.js +2 -2
  3. data/app/helpers/foreman_virt_who_configure/configs_helper.rb +1 -1
  4. data/app/models/foreman_virt_who_configure/config.rb +2 -2
  5. data/app/models/foreman_virt_who_configure/output_generator.rb +2 -1
  6. data/lib/foreman_virt_who_configure/engine.rb +1 -0
  7. data/lib/foreman_virt_who_configure/version.rb +1 -1
  8. data/locale/action_names.rb +3 -1
  9. data/locale/bn/foreman_virt_who_configure.edit.po +1105 -0
  10. data/locale/bn/foreman_virt_who_configure.po +7 -1
  11. data/locale/bn_IN/foreman_virt_who_configure.edit.po +1105 -0
  12. data/locale/bn_IN/foreman_virt_who_configure.po +7 -1
  13. data/locale/bqi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  14. data/locale/bqi/foreman_virt_who_configure.edit.po +1101 -0
  15. data/locale/bqi/foreman_virt_who_configure.po +724 -0
  16. data/locale/ca/foreman_virt_who_configure.edit.po +1105 -0
  17. data/locale/ca/foreman_virt_who_configure.po +7 -1
  18. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  19. data/locale/cs_CZ/foreman_virt_who_configure.edit.po +1117 -0
  20. data/locale/cs_CZ/foreman_virt_who_configure.po +8 -2
  21. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  22. data/locale/de/foreman_virt_who_configure.edit.po +1252 -0
  23. data/locale/de/foreman_virt_who_configure.po +8 -2
  24. data/locale/de_AT/foreman_virt_who_configure.edit.po +1101 -0
  25. data/locale/de_AT/foreman_virt_who_configure.po +7 -1
  26. data/locale/de_DE/foreman_virt_who_configure.edit.po +1107 -0
  27. data/locale/de_DE/foreman_virt_who_configure.po +7 -1
  28. data/locale/el/foreman_virt_who_configure.edit.po +1105 -0
  29. data/locale/el/foreman_virt_who_configure.po +7 -1
  30. data/locale/en/foreman_virt_who_configure.po +7 -1
  31. data/locale/en_GB/foreman_virt_who_configure.edit.po +1106 -0
  32. data/locale/en_GB/foreman_virt_who_configure.po +7 -1
  33. data/locale/en_US/foreman_virt_who_configure.edit.po +1101 -0
  34. data/locale/en_US/foreman_virt_who_configure.po +7 -1
  35. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  36. data/locale/es/foreman_virt_who_configure.edit.po +1247 -0
  37. data/locale/es/foreman_virt_who_configure.po +8 -2
  38. data/locale/et_EE/foreman_virt_who_configure.edit.po +1101 -0
  39. data/locale/et_EE/foreman_virt_who_configure.po +7 -1
  40. data/locale/foreman_virt_who_configure.pot +88 -80
  41. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  42. data/locale/fr/foreman_virt_who_configure.edit.po +1273 -0
  43. data/locale/fr/foreman_virt_who_configure.po +8 -2
  44. data/locale/gl/foreman_virt_who_configure.edit.po +1105 -0
  45. data/locale/gl/foreman_virt_who_configure.po +7 -1
  46. data/locale/gu/foreman_virt_who_configure.edit.po +1105 -0
  47. data/locale/gu/foreman_virt_who_configure.po +7 -1
  48. data/locale/he_IL/foreman_virt_who_configure.edit.po +1105 -0
  49. data/locale/he_IL/foreman_virt_who_configure.po +7 -1
  50. data/locale/hi/foreman_virt_who_configure.edit.po +1105 -0
  51. data/locale/hi/foreman_virt_who_configure.po +7 -1
  52. data/locale/id/foreman_virt_who_configure.edit.po +1101 -0
  53. data/locale/id/foreman_virt_who_configure.po +7 -1
  54. data/locale/it/foreman_virt_who_configure.edit.po +1108 -0
  55. data/locale/it/foreman_virt_who_configure.po +7 -1
  56. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  57. data/locale/ja/foreman_virt_who_configure.edit.po +1178 -0
  58. data/locale/ja/foreman_virt_who_configure.po +8 -2
  59. data/locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  60. data/locale/ka/foreman_virt_who_configure.edit.po +1230 -0
  61. data/locale/ka/foreman_virt_who_configure.po +8 -2
  62. data/locale/kn/foreman_virt_who_configure.edit.po +1105 -0
  63. data/locale/kn/foreman_virt_who_configure.po +7 -1
  64. data/locale/ko/foreman_virt_who_configure.edit.po +1108 -0
  65. data/locale/ko/foreman_virt_who_configure.po +7 -1
  66. data/locale/ml_IN/foreman_virt_who_configure.edit.po +1101 -0
  67. data/locale/ml_IN/foreman_virt_who_configure.po +7 -1
  68. data/locale/mr/foreman_virt_who_configure.edit.po +1105 -0
  69. data/locale/mr/foreman_virt_who_configure.po +7 -1
  70. data/locale/nl_NL/foreman_virt_who_configure.edit.po +1109 -0
  71. data/locale/nl_NL/foreman_virt_who_configure.po +7 -1
  72. data/locale/or/foreman_virt_who_configure.edit.po +1105 -0
  73. data/locale/or/foreman_virt_who_configure.po +7 -1
  74. data/locale/pa/foreman_virt_who_configure.edit.po +1105 -0
  75. data/locale/pa/foreman_virt_who_configure.po +7 -1
  76. data/locale/pl/foreman_virt_who_configure.edit.po +1106 -0
  77. data/locale/pl/foreman_virt_who_configure.po +7 -1
  78. data/locale/pl_PL/foreman_virt_who_configure.edit.po +1101 -0
  79. data/locale/pl_PL/foreman_virt_who_configure.po +7 -1
  80. data/locale/pt/foreman_virt_who_configure.edit.po +1105 -0
  81. data/locale/pt/foreman_virt_who_configure.po +7 -1
  82. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  83. data/locale/pt_BR/foreman_virt_who_configure.edit.po +1239 -0
  84. data/locale/pt_BR/foreman_virt_who_configure.po +8 -2
  85. data/locale/ro/foreman_virt_who_configure.edit.po +1101 -0
  86. data/locale/ro/foreman_virt_who_configure.po +7 -1
  87. data/locale/ro_RO/foreman_virt_who_configure.edit.po +1101 -0
  88. data/locale/ro_RO/foreman_virt_who_configure.po +7 -1
  89. data/locale/ru/foreman_virt_who_configure.edit.po +1109 -0
  90. data/locale/ru/foreman_virt_who_configure.po +7 -1
  91. data/locale/sl/foreman_virt_who_configure.edit.po +1105 -0
  92. data/locale/sl/foreman_virt_who_configure.po +7 -1
  93. data/locale/sv_SE/foreman_virt_who_configure.edit.po +1106 -0
  94. data/locale/sv_SE/foreman_virt_who_configure.po +7 -1
  95. data/locale/ta/foreman_virt_who_configure.edit.po +1105 -0
  96. data/locale/ta/foreman_virt_who_configure.po +7 -1
  97. data/locale/ta_IN/foreman_virt_who_configure.edit.po +1105 -0
  98. data/locale/ta_IN/foreman_virt_who_configure.po +7 -1
  99. data/locale/te/foreman_virt_who_configure.edit.po +1105 -0
  100. data/locale/te/foreman_virt_who_configure.po +7 -1
  101. data/locale/tr/foreman_virt_who_configure.edit.po +1105 -0
  102. data/locale/tr/foreman_virt_who_configure.po +7 -1
  103. data/locale/vi/foreman_virt_who_configure.edit.po +1101 -0
  104. data/locale/vi/foreman_virt_who_configure.po +7 -1
  105. data/locale/vi_VN/foreman_virt_who_configure.edit.po +1101 -0
  106. data/locale/vi_VN/foreman_virt_who_configure.po +7 -1
  107. data/locale/zh/foreman_virt_who_configure.edit.po +1101 -0
  108. data/locale/zh/foreman_virt_who_configure.po +7 -1
  109. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  110. data/locale/zh_CN/foreman_virt_who_configure.edit.po +1158 -0
  111. data/locale/zh_CN/foreman_virt_who_configure.po +8 -2
  112. data/locale/zh_TW/foreman_virt_who_configure.edit.po +1106 -0
  113. data/locale/zh_TW/foreman_virt_who_configure.po +7 -1
  114. metadata +51 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 804bfa0dcf42fa2495425b159e3c2edbea164afcad098d15f7cafc2f543c659c
4
- data.tar.gz: 88e7460569118f50f3c635ad9c6e55e0db10d118cd96131338f4928cd4abbcb1
3
+ metadata.gz: deca9da386725c66ab9e7eddfc7b64d270295ca70ca3308a632bbeee32a9a6a4
4
+ data.tar.gz: ea2c641dd1d08c7d871d5713bd2ccc77620265a9a5fa9c5d1cdcb05b8f28080e
5
5
  SHA512:
6
- metadata.gz: 66123eb9a60975f6dc753efe576a25d83ebf66f95e3d15b80766f014d7f22c5dc0d36fcbeb592249ed5ad53c39d77f2359222397a1e89fa93fcf1156ff28b69b
7
- data.tar.gz: 987c19db5ea036ceaaf02fe1235441cc9a251816196b5c6d5a7da796ce61210313d4e045118c129e94f9780f681ec5f367368bf8f3bcb8c748fee5dbf8e890be
6
+ metadata.gz: 5e0239b3a62c3f3a857b08300224cc3f17bec6d1a78216d88021bd7c8cc3de34204ae0cc808ed6657b30c5d18c009b4e4c4e6e0fc82f8a84e9cc66baa9589b8d
7
+ data.tar.gz: be67b4aad3f534fa994a6a8604484734cb21bbf738894d97ed4f4d1f928d0fce1ea877d2b8cb3cdf0be1dc0afaa535edf9146d95f590a3a796b20bc9668d2ca7
@@ -28,13 +28,13 @@ function virt_who_update_listing_mode() {
28
28
  function virt_who_update_hypervisor_fields() {
29
29
  selected_type = $('#foreman_virt_who_configure_config_hypervisor_type').val();
30
30
  var element = $('#foreman_virt_who_configure_config_hypervisor_username');
31
- element.closest('.form-group').toggle(selected_type != 'libvirt' && selected_type != 'kubevirt');
31
+ element.closest('.form-group').toggle(selected_type != 'kubevirt');
32
32
  var element = $('#foreman_virt_who_configure_config_hypervisor_password');
33
33
  element.closest('.form-group').toggle(selected_type != 'libvirt' && selected_type != 'kubevirt');
34
34
  var element = $('#foreman_virt_who_configure_config_kubeconfig_path');
35
35
  element.closest('.form-group').toggle(selected_type == 'kubevirt');
36
36
  var element = $('#foreman_virt_who_configure_config_hypervisor_server');
37
- element.closest('.form-group').toggle(selected_type != 'libvirt' && selected_type != 'kubevirt');
37
+ element.closest('.form-group').toggle(selected_type != 'kubevirt');
38
38
  var element = $('#foreman_virt_who_configure_config_ahv_internal_debug');
39
39
  element.closest('.form-group').toggle(selected_type == 'ahv');
40
40
  virt_who_update_listing_mode();
@@ -4,7 +4,7 @@ module ForemanVirtWhoConfigure
4
4
  @hypervisor_server_help_data ||= {
5
5
  'esx' => _('VMware vCenter server’s fully qualified host name or IP address.'),
6
6
  'hyperv' => _('Microsoft Hyper-V fully qualified host name or IP address.'),
7
- 'libvirt' => _('Libvirt server’s fully qualified host name or IP address. You can also specify preferred schema, for example: <code>qemu+ssh://libvirt.example.com/system</code>. If you use SSH, make sure you setup root\'s SSH key on target host for a user specified at hypervisor username field'),
7
+ 'libvirt' => _('Libvirt server’s fully qualified host name or IP address. You can also specify preferred schema, for example: <code>qemu+ssh://libvirt.example.com/system</code>. Make sure you setup root\'s SSH key on target host for a user specified at hypervisor username field'),
8
8
  'kubevirt' => _('Container-native virtualization’s fully qualified host name or IP address. In order to connect to the cluster it is required to provide path to kubeconfig which contains connection details and authentication token.'),
9
9
  'ahv' => _('Nutanix AHV’s IP address.')
10
10
  }
@@ -106,8 +106,8 @@ module ForemanVirtWhoConfigure
106
106
  :presence => true
107
107
  validates :name, :uniqueness => { :scope => :organization_id }
108
108
  validates :hypervisor_password, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'libvirt' && c.hypervisor_type != 'kubevirt' }
109
- validates :hypervisor_username, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'libvirt' && c.hypervisor_type != 'kubevirt' }
110
- validates :hypervisor_server, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'libvirt' && c.hypervisor_type != 'kubevirt' }
109
+ validates :hypervisor_username, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'kubevirt' }
110
+ validates :hypervisor_server, :presence => true, :if => Proc.new { |c| c.hypervisor_type != 'kubevirt' }
111
111
  validates :kubeconfig_path, :presence => true, :if => Proc.new { |c| c.hypervisor_type == 'kubevirt' }
112
112
  validates :hypervisor_type, :inclusion => HYPERVISOR_TYPES.keys
113
113
  validates :hypervisor_id, :inclusion => HYPERVISOR_IDS
@@ -160,7 +160,8 @@ EOS
160
160
  if config.hypervisor_type == 'kubevirt'
161
161
  ""
162
162
  elsif config.hypervisor_type == 'libvirt'
163
- "\nserver=qemu:///system"
163
+ "\nserver=#{cr_server}
164
+ username=#{cr_username}"
164
165
  else
165
166
  "\nserver=#{cr_server}
166
167
  username=#{cr_username}
@@ -28,6 +28,7 @@ module ForemanVirtWhoConfigure
28
28
  initializer 'foreman_virt_who_configure.register_plugin', :before => :finisher_hook do |_app|
29
29
  Foreman::Plugin.register :foreman_virt_who_configure do
30
30
  requires_foreman '>= 3.7'
31
+ register_gettext
31
32
 
32
33
  apipie_documented_controllers ["#{ForemanVirtWhoConfigure::Engine.root}/app/controllers/foreman_virt_who_configure/api/v2/*.rb"]
33
34
 
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.5.15'.freeze
2
+ VERSION = '0.5.17'.freeze
3
3
  end
@@ -6,6 +6,7 @@ _("Agent action")
6
6
  _("Attach subscriptions")
7
7
  _("Auto attach subscriptions")
8
8
  _("Bulk generate applicability for hosts")
9
+ _("Check for long running tasks")
9
10
  _("Combined Profile Update")
10
11
  _("Copy version units to library")
11
12
  _("Create Alternate Content Source")
@@ -17,6 +18,7 @@ _("Delete Activation Key")
17
18
  _("Delete Lifecycle Environment")
18
19
  _("Delete Product")
19
20
  _("Delete")
21
+ _("Deliver notifications about long running tasks")
20
22
  _("Destroy Alternate Content Source")
21
23
  _("Destroy Content Host")
22
24
  _("Destroy")
@@ -80,4 +82,4 @@ _("Update release version for host")
80
82
  _("Update")
81
83
  _("Updating System Purpose for host")
82
84
  _("Upload into")
83
- _("Verify checksum")
85
+ _("Verify checksum")