foreman_virt_who_configure 0.5.15 → 0.5.16
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/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 +6 -0
- data/locale/bn_IN/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/bn_IN/foreman_virt_who_configure.po +6 -0
- 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 +6 -0
- data/locale/cs_CZ/foreman_virt_who_configure.edit.po +1117 -0
- data/locale/cs_CZ/foreman_virt_who_configure.po +6 -0
- data/locale/de/foreman_virt_who_configure.edit.po +1252 -0
- data/locale/de/foreman_virt_who_configure.po +6 -0
- data/locale/de_AT/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/de_AT/foreman_virt_who_configure.po +6 -0
- data/locale/de_DE/foreman_virt_who_configure.edit.po +1107 -0
- data/locale/de_DE/foreman_virt_who_configure.po +6 -0
- data/locale/el/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/el/foreman_virt_who_configure.po +6 -0
- data/locale/en/foreman_virt_who_configure.po +6 -0
- data/locale/en_GB/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/en_GB/foreman_virt_who_configure.po +6 -0
- data/locale/en_US/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/en_US/foreman_virt_who_configure.po +6 -0
- data/locale/es/foreman_virt_who_configure.edit.po +1247 -0
- data/locale/es/foreman_virt_who_configure.po +6 -0
- data/locale/et_EE/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/et_EE/foreman_virt_who_configure.po +6 -0
- data/locale/foreman_virt_who_configure.pot +86 -78
- data/locale/fr/foreman_virt_who_configure.edit.po +1273 -0
- data/locale/fr/foreman_virt_who_configure.po +6 -0
- data/locale/gl/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/gl/foreman_virt_who_configure.po +6 -0
- data/locale/gu/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/gu/foreman_virt_who_configure.po +6 -0
- data/locale/he_IL/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/he_IL/foreman_virt_who_configure.po +6 -0
- data/locale/hi/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/hi/foreman_virt_who_configure.po +6 -0
- data/locale/id/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/id/foreman_virt_who_configure.po +6 -0
- data/locale/it/foreman_virt_who_configure.edit.po +1108 -0
- data/locale/it/foreman_virt_who_configure.po +6 -0
- data/locale/ja/foreman_virt_who_configure.edit.po +1178 -0
- data/locale/ja/foreman_virt_who_configure.po +6 -0
- data/locale/ka/foreman_virt_who_configure.edit.po +1230 -0
- data/locale/ka/foreman_virt_who_configure.po +6 -0
- data/locale/kn/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/kn/foreman_virt_who_configure.po +6 -0
- data/locale/ko/foreman_virt_who_configure.edit.po +1108 -0
- data/locale/ko/foreman_virt_who_configure.po +6 -0
- data/locale/ml_IN/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/ml_IN/foreman_virt_who_configure.po +6 -0
- data/locale/mr/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/mr/foreman_virt_who_configure.po +6 -0
- data/locale/nl_NL/foreman_virt_who_configure.edit.po +1109 -0
- data/locale/nl_NL/foreman_virt_who_configure.po +6 -0
- data/locale/or/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/or/foreman_virt_who_configure.po +6 -0
- data/locale/pa/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/pa/foreman_virt_who_configure.po +6 -0
- data/locale/pl/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/pl/foreman_virt_who_configure.po +6 -0
- data/locale/pl_PL/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/pl_PL/foreman_virt_who_configure.po +6 -0
- data/locale/pt/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/pt/foreman_virt_who_configure.po +6 -0
- data/locale/pt_BR/foreman_virt_who_configure.edit.po +1239 -0
- data/locale/pt_BR/foreman_virt_who_configure.po +6 -0
- data/locale/ro/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/ro/foreman_virt_who_configure.po +6 -0
- data/locale/ro_RO/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/ro_RO/foreman_virt_who_configure.po +6 -0
- data/locale/ru/foreman_virt_who_configure.edit.po +1109 -0
- data/locale/ru/foreman_virt_who_configure.po +6 -0
- data/locale/sl/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/sl/foreman_virt_who_configure.po +6 -0
- data/locale/sv_SE/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/sv_SE/foreman_virt_who_configure.po +6 -0
- data/locale/ta/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/ta/foreman_virt_who_configure.po +6 -0
- data/locale/ta_IN/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/ta_IN/foreman_virt_who_configure.po +6 -0
- data/locale/te/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/te/foreman_virt_who_configure.po +6 -0
- data/locale/tr/foreman_virt_who_configure.edit.po +1105 -0
- data/locale/tr/foreman_virt_who_configure.po +6 -0
- data/locale/vi/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/vi/foreman_virt_who_configure.po +6 -0
- data/locale/vi_VN/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/vi_VN/foreman_virt_who_configure.po +6 -0
- data/locale/zh/foreman_virt_who_configure.edit.po +1101 -0
- data/locale/zh/foreman_virt_who_configure.po +6 -0
- data/locale/zh_CN/foreman_virt_who_configure.edit.po +1158 -0
- data/locale/zh_CN/foreman_virt_who_configure.po +6 -0
- data/locale/zh_TW/foreman_virt_who_configure.edit.po +1106 -0
- data/locale/zh_TW/foreman_virt_who_configure.po +6 -0
- 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: 37fe6c2f341583f5f95d01b1241535742380d7ae5de27c3afbcd00ee863a8731
|
4
|
+
data.tar.gz: 60eead41da814378bf4fb353fd0131951f218807167413631ba30dda352f861e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eea6c5cf345b3365c0d66eb8d5693c7b04eee2a8e39404874f8d0e15286c452ea9fa84038f74b84cec6d5ce2f34fbc52762269eca53283d4f6425198fe134af7
|
7
|
+
data.tar.gz: 97fcfae5fdfa68c4dc53f3975257e9e0896f69085da1de49ca04adc1cbf035b1d00c2f01ec76d12da3b4d6a713a89bc30fac49c2e74f26129d7ff8b5fa384d69
|
@@ -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();
|
@@ -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")
|