foreman_virt_who_configure 0.5.13 → 0.5.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_virt_who_configure/config_edit.js +2 -2
  3. data/app/controllers/foreman_virt_who_configure/configs_controller.rb +5 -5
  4. data/app/models/foreman_virt_who_configure/config.rb +2 -2
  5. data/app/models/foreman_virt_who_configure/output_generator.rb +2 -0
  6. data/app/views/foreman_virt_who_configure/configs/steps/_general_information_form.erb +5 -5
  7. data/app/views/foreman_virt_who_configure/configs/steps/_schedule_form.erb +1 -1
  8. data/lib/foreman_virt_who_configure/engine.rb +1 -1
  9. data/lib/foreman_virt_who_configure/version.rb +1 -1
  10. data/locale/action_names.rb +1 -2
  11. data/locale/bn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  12. data/locale/bn/foreman_virt_who_configure.po +721 -0
  13. data/locale/bn_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  14. data/locale/bn_IN/foreman_virt_who_configure.po +722 -0
  15. data/locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  16. data/locale/ca/foreman_virt_who_configure.po +21 -6
  17. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  18. data/locale/cs_CZ/foreman_virt_who_configure.po +21 -6
  19. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  20. data/locale/de/foreman_virt_who_configure.po +21 -6
  21. data/locale/de_AT/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  22. data/locale/de_AT/foreman_virt_who_configure.po +718 -0
  23. data/locale/de_DE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  24. data/locale/de_DE/foreman_virt_who_configure.po +724 -0
  25. data/locale/el/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  26. data/locale/el/foreman_virt_who_configure.po +721 -0
  27. data/locale/en/foreman_virt_who_configure.po +21 -6
  28. data/locale/en_GB/foreman_virt_who_configure.po +21 -6
  29. data/locale/en_US/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  30. data/locale/en_US/foreman_virt_who_configure.po +718 -0
  31. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  32. data/locale/es/foreman_virt_who_configure.po +21 -6
  33. data/locale/et_EE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  34. data/locale/et_EE/foreman_virt_who_configure.po +718 -0
  35. data/locale/foreman_virt_who_configure.pot +100 -75
  36. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  37. data/locale/fr/foreman_virt_who_configure.po +21 -6
  38. data/locale/gl/foreman_virt_who_configure.po +21 -6
  39. data/locale/gu/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  40. data/locale/gu/foreman_virt_who_configure.po +721 -0
  41. data/locale/he_IL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  42. data/locale/he_IL/foreman_virt_who_configure.po +723 -0
  43. data/locale/hi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  44. data/locale/hi/foreman_virt_who_configure.po +721 -0
  45. data/locale/id/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  46. data/locale/id/foreman_virt_who_configure.po +717 -0
  47. data/locale/it/foreman_virt_who_configure.po +21 -6
  48. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  49. data/locale/ja/foreman_virt_who_configure.po +21 -6
  50. data/locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  51. data/locale/ka/foreman_virt_who_configure.po +21 -6
  52. data/locale/kn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  53. data/locale/kn/foreman_virt_who_configure.po +721 -0
  54. data/locale/ko/foreman_virt_who_configure.po +21 -6
  55. data/locale/ml_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  56. data/locale/ml_IN/foreman_virt_who_configure.po +718 -0
  57. data/locale/mr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  58. data/locale/mr/foreman_virt_who_configure.po +721 -0
  59. data/locale/nl_NL/foreman_virt_who_configure.po +21 -6
  60. data/locale/or/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  61. data/locale/or/foreman_virt_who_configure.po +721 -0
  62. data/locale/pa/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  63. data/locale/pa/foreman_virt_who_configure.po +722 -0
  64. data/locale/pl/foreman_virt_who_configure.po +21 -6
  65. data/locale/pl_PL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  66. data/locale/pl_PL/foreman_virt_who_configure.po +720 -0
  67. data/locale/pt/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  68. data/locale/pt/foreman_virt_who_configure.po +722 -0
  69. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  70. data/locale/pt_BR/foreman_virt_who_configure.po +21 -6
  71. data/locale/ro/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  72. data/locale/ro/foreman_virt_who_configure.po +718 -0
  73. data/locale/ro_RO/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  74. data/locale/ro_RO/foreman_virt_who_configure.po +719 -0
  75. data/locale/ru/foreman_virt_who_configure.po +21 -6
  76. data/locale/sl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  77. data/locale/sl/foreman_virt_who_configure.po +722 -0
  78. data/locale/sv_SE/foreman_virt_who_configure.po +21 -6
  79. data/locale/ta/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  80. data/locale/ta/foreman_virt_who_configure.po +721 -0
  81. data/locale/ta_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  82. data/locale/ta_IN/foreman_virt_who_configure.po +722 -0
  83. data/locale/te/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  84. data/locale/te/foreman_virt_who_configure.po +721 -0
  85. data/locale/tr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  86. data/locale/tr/foreman_virt_who_configure.po +721 -0
  87. data/locale/vi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  88. data/locale/vi/foreman_virt_who_configure.po +717 -0
  89. data/locale/vi_VN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  90. data/locale/vi_VN/foreman_virt_who_configure.po +718 -0
  91. data/locale/zh/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  92. data/locale/zh/foreman_virt_who_configure.po +717 -0
  93. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  94. data/locale/zh_CN/foreman_virt_who_configure.po +21 -6
  95. data/locale/zh_TW/foreman_virt_who_configure.po +21 -6
  96. metadata +58 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 013fa656ae374744bb4fb2f971ba1d4eaf8bdaec545fc1cf2521676f8a43b3cf
4
- data.tar.gz: 66ac2d89d40eff95b6af89b18827b066510ffcca72741307b4f45dfd8d0092c1
3
+ metadata.gz: 804bfa0dcf42fa2495425b159e3c2edbea164afcad098d15f7cafc2f543c659c
4
+ data.tar.gz: 88e7460569118f50f3c635ad9c6e55e0db10d118cd96131338f4928cd4abbcb1
5
5
  SHA512:
6
- metadata.gz: 2cdf1312584473aa29ef1693d6bfb83134c9e13b368e1f3f762799e8952273cf68d370b851ae2b0a4137d35df50cd1ad4e1d49f94fa339871c6266875fe0980d
7
- data.tar.gz: 05607f81fa6c58bb53f2a412fb31ebafd3c3c991b61e6a69dd861f9aefafdf30ce0835d5f66fa0d1901f6597a9f0a88cd2ee6cafb5872374f45f4926377ed687
6
+ metadata.gz: 66123eb9a60975f6dc753efe576a25d83ebf66f95e3d15b80766f014d7f22c5dc0d36fcbeb592249ed5ad53c39d77f2359222397a1e89fa93fcf1156ff28b69b
7
+ data.tar.gz: 987c19db5ea036ceaaf02fe1235441cc9a251816196b5c6d5a7da796ce61210313d4e045118c129e94f9780f681ec5f367368bf8f3bcb8c748fee5dbf8e890be
@@ -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 != 'kubevirt');
31
+ element.closest('.form-group').toggle(selected_type != 'libvirt' && 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 != 'kubevirt');
37
+ element.closest('.form-group').toggle(selected_type != 'libvirt' && 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();
@@ -36,7 +36,7 @@ module ForemanVirtWhoConfigure
36
36
  def create
37
37
  @config = Config.new(config_params)
38
38
  if @config.save
39
- process_success :success_redirect => foreman_virt_who_configure_config_path(@config), :object => @config
39
+ process_success :success_redirect => foreman_virt_who_configure_config_path(@config), :object => @config.name
40
40
  else
41
41
  render 'new'
42
42
  end
@@ -50,17 +50,17 @@ module ForemanVirtWhoConfigure
50
50
 
51
51
  def update
52
52
  if @config.update(config_params)
53
- process_success :object => @config
53
+ process_success :object => @config.name
54
54
  else
55
- process_error :object => @config
55
+ process_error :object => @config.name
56
56
  end
57
57
  end
58
58
 
59
59
  def destroy
60
60
  if @config.destroy
61
- process_success :object => @config
61
+ process_success :object => @config.name
62
62
  else
63
- process_error :object => @config
63
+ process_error :object => @config.name
64
64
  end
65
65
  end
66
66
 
@@ -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 != 'kubevirt' }
110
- validates :hypervisor_server, :presence => true, :if => Proc.new { |c| 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' }
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
@@ -159,6 +159,8 @@ EOS
159
159
  def connection_details
160
160
  if config.hypervisor_type == 'kubevirt'
161
161
  ""
162
+ elsif config.hypervisor_type == 'libvirt'
163
+ "\nserver=qemu:///system"
162
164
  else
163
165
  "\nserver=#{cr_server}
164
166
  username=#{cr_username}
@@ -1,5 +1,5 @@
1
1
  <div id="config_general_information">
2
- <%= text_f f, :name, inline_help_popover(_('Name of this configuration, e.g. the name of the hypervisor')) %>
2
+ <%= text_f f, :name, inline_help_popover(_('Name of this configuration, e.g. the name of the hypervisor')).merge(:label => _('Name')) %>
3
3
 
4
4
  <% if f.object.organization_id.present? %>
5
5
  <%= f.hidden_field :organization_id %>
@@ -7,8 +7,8 @@
7
7
  <%= select_f f, :organization_id, Organization.authorized(:view_organizations), :id, :to_s, {}, :label => _('Owner') %>
8
8
  <% end %>
9
9
 
10
- <%= select_f f, :hypervisor_type, ForemanVirtWhoConfigure::Config::HYPERVISOR_TYPES, :first, :last %>
11
- <%= text_f f, :hypervisor_server, { :required => true }.merge(inline_help_popover(hypervisor_server_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_server_help_data })) %>
12
- <%= text_f f, :hypervisor_username, { :required => true }.merge(inline_help_popover(hypervisor_username_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_username_help_data })) %>
13
- <%= password_f f, :hypervisor_password, { :required => true, :value => f.object.hypervisor_password }.merge(inline_help_popover(_('Account password by which virt-who is to connect to the hypervisor instance.'))) %>
10
+ <%= select_f f, :hypervisor_type, ForemanVirtWhoConfigure::Config::HYPERVISOR_TYPES, :first, :last, {}, { :label => _('Hypervisor Type') } %>
11
+ <%= text_f f, :hypervisor_server, { :label => _('Hypervisor Server'), :required => true }.merge(inline_help_popover(hypervisor_server_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_server_help_data })) %>
12
+ <%= text_f f, :hypervisor_username, { :label => _('Hypervisor Username'), :required => true }.merge(inline_help_popover(hypervisor_username_help_data[f.object.hypervisor_type]).merge(:data => { :help => hypervisor_username_help_data })) %>
13
+ <%= password_f f, :hypervisor_password, { :label => _('Hypervisor Password'), :required => true, :value => f.object.attributes["hypervisor_password"] }.merge(inline_help_popover(_('Account password by which virt-who is to connect to the hypervisor instance.'))) %>
14
14
  </div>
@@ -1,3 +1,3 @@
1
1
  <div id="config_schedule">
2
- <%= selectable_f f, :interval, ForemanVirtWhoConfigure::Config::AVAILABLE_INTERVALS.map { |k,v| [_(v), k] }, {}, inline_help_popover(_("How often to check connected hypervisors for changes? Also affects how often a mapping is reported. The recommended value for most environments is every two hours. Different interval can't be set per hypervisor, therefore it will affect all other deployed configurations on the host on which this configuration will be deployed.")) %>
2
+ <%= selectable_f f, :interval, ForemanVirtWhoConfigure::Config::AVAILABLE_INTERVALS.map { |k,v| [_(v), k] }, {}, inline_help_popover(_("How often to check connected hypervisors for changes? Also affects how often a mapping is reported. The recommended value for most environments is every two hours. Different interval can't be set per hypervisor, therefore it will affect all other deployed configurations on the host on which this configuration will be deployed.")).merge(:label => _('Interval')) %>
3
3
  </div>
@@ -27,7 +27,7 @@ module ForemanVirtWhoConfigure
27
27
 
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
- requires_foreman '>= 1.24'
30
+ requires_foreman '>= 3.7'
31
31
 
32
32
  apipie_documented_controllers ["#{ForemanVirtWhoConfigure::Engine.root}/app/controllers/foreman_virt_who_configure/api/v2/*.rb"]
33
33
 
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.5.13'.freeze
2
+ VERSION = '0.5.15'.freeze
3
3
  end
@@ -11,12 +11,10 @@ _("Copy version units to library")
11
11
  _("Create Alternate Content Source")
12
12
  _("Create Export History")
13
13
  _("Create Import History")
14
- _("Create Package Group")
15
14
  _("Create Syncable Export History")
16
15
  _("Create")
17
16
  _("Delete Activation Key")
18
17
  _("Delete Lifecycle Environment")
19
- _("Delete Package Group")
20
18
  _("Delete Product")
21
19
  _("Delete")
22
20
  _("Destroy Alternate Content Source")
@@ -57,6 +55,7 @@ _("Publish Lifecycle Environment Repositories")
57
55
  _("Publish")
58
56
  _("Refresh Alternate Content Source")
59
57
  _("Reindex subscriptions")
58
+ _("Remote action:")
60
59
  _("Remove Content")
61
60
  _("Remove Version")
62
61
  _("Remove Versions and Associations")