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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_virt_who_configure/config_edit.js +2 -2
- data/app/helpers/foreman_virt_who_configure/configs_helper.rb +1 -1
- data/app/models/foreman_virt_who_configure/config.rb +2 -2
- data/app/models/foreman_virt_who_configure/output_generator.rb +2 -1
- data/lib/foreman_virt_who_configure/engine.rb +1 -0
- data/lib/foreman_virt_who_configure/version.rb +1 -1
- data/locale/action_names.rb +3 -1
- data/locale/bn/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/bn/foreman_virt_who_configure.po +7 -1
- data/locale/bn_IN/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/bn_IN/foreman_virt_who_configure.po +7 -1
- data/locale/bqi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/bqi/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/bqi/foreman_virt_who_configure.po +724 -0
- data/locale/ca/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/ca/foreman_virt_who_configure.po +7 -1
- data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/cs_CZ/foreman_virt_who_configure.edit.po +1117 -0
- data/locale/cs_CZ/foreman_virt_who_configure.po +8 -2
- data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/de/foreman_virt_who_configure.edit.po +1252 -0
- data/locale/de/foreman_virt_who_configure.po +8 -2
- data/locale/de_AT/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/de_AT/foreman_virt_who_configure.po +7 -1
- data/locale/de_DE/foreman_virt_who_configure.edit.po +1107 -0
- data/locale/de_DE/foreman_virt_who_configure.po +7 -1
- data/locale/el/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/el/foreman_virt_who_configure.po +7 -1
- data/locale/en/foreman_virt_who_configure.po +7 -1
- data/locale/en_GB/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/en_GB/foreman_virt_who_configure.po +7 -1
- data/locale/en_US/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/en_US/foreman_virt_who_configure.po +7 -1
- data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/es/foreman_virt_who_configure.edit.po +1247 -0
- data/locale/es/foreman_virt_who_configure.po +8 -2
- data/locale/et_EE/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/et_EE/foreman_virt_who_configure.po +7 -1
- data/locale/foreman_virt_who_configure.pot +88 -80
- data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/fr/foreman_virt_who_configure.edit.po +1273 -0
- data/locale/fr/foreman_virt_who_configure.po +8 -2
- data/locale/gl/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/gl/foreman_virt_who_configure.po +7 -1
- data/locale/gu/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/gu/foreman_virt_who_configure.po +7 -1
- data/locale/he_IL/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/he_IL/foreman_virt_who_configure.po +7 -1
- data/locale/hi/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/hi/foreman_virt_who_configure.po +7 -1
- data/locale/id/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/id/foreman_virt_who_configure.po +7 -1
- data/locale/it/foreman_virt_who_configure.edit.po +1108 -0
- data/locale/it/foreman_virt_who_configure.po +7 -1
- data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/ja/foreman_virt_who_configure.edit.po +1178 -0
- data/locale/ja/foreman_virt_who_configure.po +8 -2
- data/locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/ka/foreman_virt_who_configure.edit.po +1230 -0
- data/locale/ka/foreman_virt_who_configure.po +8 -2
- data/locale/kn/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/kn/foreman_virt_who_configure.po +7 -1
- data/locale/ko/foreman_virt_who_configure.edit.po +1108 -0
- data/locale/ko/foreman_virt_who_configure.po +7 -1
- data/locale/ml_IN/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/ml_IN/foreman_virt_who_configure.po +7 -1
- data/locale/mr/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/mr/foreman_virt_who_configure.po +7 -1
- data/locale/nl_NL/foreman_virt_who_configure.edit.po +1109 -0
- data/locale/nl_NL/foreman_virt_who_configure.po +7 -1
- data/locale/or/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/or/foreman_virt_who_configure.po +7 -1
- data/locale/pa/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/pa/foreman_virt_who_configure.po +7 -1
- data/locale/pl/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/pl/foreman_virt_who_configure.po +7 -1
- data/locale/pl_PL/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/pl_PL/foreman_virt_who_configure.po +7 -1
- data/locale/pt/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/pt/foreman_virt_who_configure.po +7 -1
- data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/pt_BR/foreman_virt_who_configure.edit.po +1239 -0
- data/locale/pt_BR/foreman_virt_who_configure.po +8 -2
- data/locale/ro/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/ro/foreman_virt_who_configure.po +7 -1
- data/locale/ro_RO/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/ro_RO/foreman_virt_who_configure.po +7 -1
- data/locale/ru/foreman_virt_who_configure.edit.po +1109 -0
- data/locale/ru/foreman_virt_who_configure.po +7 -1
- data/locale/sl/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/sl/foreman_virt_who_configure.po +7 -1
- data/locale/sv_SE/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/sv_SE/foreman_virt_who_configure.po +7 -1
- data/locale/ta/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/ta/foreman_virt_who_configure.po +7 -1
- data/locale/ta_IN/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/ta_IN/foreman_virt_who_configure.po +7 -1
- data/locale/te/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/te/foreman_virt_who_configure.po +7 -1
- data/locale/tr/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/tr/foreman_virt_who_configure.po +7 -1
- data/locale/vi/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/vi/foreman_virt_who_configure.po +7 -1
- data/locale/vi_VN/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/vi_VN/foreman_virt_who_configure.po +7 -1
- data/locale/zh/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/zh/foreman_virt_who_configure.po +7 -1
- data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
- data/locale/zh_CN/foreman_virt_who_configure.edit.po +1158 -0
- data/locale/zh_CN/foreman_virt_who_configure.po +8 -2
- data/locale/zh_TW/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/zh_TW/foreman_virt_who_configure.po +7 -1
- metadata +51 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deca9da386725c66ab9e7eddfc7b64d270295ca70ca3308a632bbeee32a9a6a4
|
4
|
+
data.tar.gz: ea2c641dd1d08c7d871d5713bd2ccc77620265a9a5fa9c5d1cdcb05b8f28080e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 != '
|
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 != '
|
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>.
|
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 != '
|
110
|
-
validates :hypervisor_server, :presence => true, :if => Proc.new { |c| c.hypervisor_type != '
|
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
|
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
|
|
data/locale/action_names.rb
CHANGED
@@ -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")
|