foreman_virt_who_configure 0.5.12 → 0.5.14

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/README.md +6 -6
  3. data/app/assets/javascripts/foreman_virt_who_configure/config_edit.js +0 -2
  4. data/app/controllers/foreman_virt_who_configure/api/v2/configs_controller.rb +1 -2
  5. data/app/controllers/foreman_virt_who_configure/configs_controller.rb +6 -6
  6. data/app/models/foreman_virt_who_configure/config.rb +2 -3
  7. data/app/models/foreman_virt_who_configure/output_generator.rb +1 -2
  8. data/app/views/foreman_virt_who_configure/api/v2/configs/main.json.rabl +1 -1
  9. data/app/views/foreman_virt_who_configure/configs/show.html.erb +0 -1
  10. data/app/views/foreman_virt_who_configure/configs/steps/_connection_form.erb +0 -1
  11. data/app/views/foreman_virt_who_configure/configs/steps/_general_information_form.erb +5 -5
  12. data/app/views/foreman_virt_who_configure/configs/steps/_schedule_form.erb +1 -1
  13. data/db/migrate/20230210152216_remove_ahv_update_interval_from_config.rb +5 -0
  14. data/lib/foreman_virt_who_configure/engine.rb +1 -1
  15. data/lib/foreman_virt_who_configure/version.rb +1 -1
  16. data/locale/action_names.rb +1 -2
  17. data/locale/bn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  18. data/locale/bn/foreman_virt_who_configure.po +721 -0
  19. data/locale/bn_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  20. data/locale/bn_IN/foreman_virt_who_configure.po +722 -0
  21. data/locale/ca/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  22. data/locale/ca/foreman_virt_who_configure.po +22 -13
  23. data/locale/cs_CZ/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  24. data/locale/cs_CZ/foreman_virt_who_configure.po +22 -13
  25. data/locale/de/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  26. data/locale/de/foreman_virt_who_configure.po +22 -13
  27. data/locale/de_AT/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  28. data/locale/de_AT/foreman_virt_who_configure.po +718 -0
  29. data/locale/de_DE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  30. data/locale/de_DE/foreman_virt_who_configure.po +724 -0
  31. data/locale/el/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  32. data/locale/el/foreman_virt_who_configure.po +721 -0
  33. data/locale/en/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  34. data/locale/en/foreman_virt_who_configure.po +22 -13
  35. data/locale/en_GB/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  36. data/locale/en_GB/foreman_virt_who_configure.po +22 -13
  37. data/locale/en_US/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  38. data/locale/en_US/foreman_virt_who_configure.po +718 -0
  39. data/locale/es/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  40. data/locale/es/foreman_virt_who_configure.po +22 -13
  41. data/locale/et_EE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  42. data/locale/et_EE/foreman_virt_who_configure.po +718 -0
  43. data/locale/foreman_virt_who_configure.pot +117 -103
  44. data/locale/fr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  45. data/locale/fr/foreman_virt_who_configure.po +38 -29
  46. data/locale/gl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  47. data/locale/gl/foreman_virt_who_configure.po +22 -13
  48. data/locale/gu/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  49. data/locale/gu/foreman_virt_who_configure.po +721 -0
  50. data/locale/he_IL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  51. data/locale/he_IL/foreman_virt_who_configure.po +723 -0
  52. data/locale/hi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  53. data/locale/hi/foreman_virt_who_configure.po +721 -0
  54. data/locale/id/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  55. data/locale/id/foreman_virt_who_configure.po +717 -0
  56. data/locale/it/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  57. data/locale/it/foreman_virt_who_configure.po +22 -13
  58. data/locale/ja/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  59. data/locale/ja/foreman_virt_who_configure.po +22 -13
  60. data/locale/ka/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  61. data/locale/ka/foreman_virt_who_configure.po +22 -13
  62. data/locale/kn/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  63. data/locale/kn/foreman_virt_who_configure.po +721 -0
  64. data/locale/ko/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  65. data/locale/ko/foreman_virt_who_configure.po +25 -15
  66. data/locale/ml_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  67. data/locale/ml_IN/foreman_virt_who_configure.po +718 -0
  68. data/locale/mr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  69. data/locale/mr/foreman_virt_who_configure.po +721 -0
  70. data/locale/nl_NL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  71. data/locale/nl_NL/foreman_virt_who_configure.po +22 -13
  72. data/locale/or/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  73. data/locale/or/foreman_virt_who_configure.po +721 -0
  74. data/locale/pa/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  75. data/locale/pa/foreman_virt_who_configure.po +722 -0
  76. data/locale/pl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  77. data/locale/pl/foreman_virt_who_configure.po +22 -13
  78. data/locale/pl_PL/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  79. data/locale/pl_PL/foreman_virt_who_configure.po +720 -0
  80. data/locale/pt/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  81. data/locale/pt/foreman_virt_who_configure.po +722 -0
  82. data/locale/pt_BR/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  83. data/locale/pt_BR/foreman_virt_who_configure.po +22 -13
  84. data/locale/ro/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  85. data/locale/ro/foreman_virt_who_configure.po +718 -0
  86. data/locale/ro_RO/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  87. data/locale/ro_RO/foreman_virt_who_configure.po +719 -0
  88. data/locale/ru/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  89. data/locale/ru/foreman_virt_who_configure.po +22 -13
  90. data/locale/sl/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  91. data/locale/sl/foreman_virt_who_configure.po +722 -0
  92. data/locale/sv_SE/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  93. data/locale/sv_SE/foreman_virt_who_configure.po +22 -13
  94. data/locale/ta/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  95. data/locale/ta/foreman_virt_who_configure.po +721 -0
  96. data/locale/ta_IN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  97. data/locale/ta_IN/foreman_virt_who_configure.po +722 -0
  98. data/locale/te/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  99. data/locale/te/foreman_virt_who_configure.po +721 -0
  100. data/locale/tr/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  101. data/locale/tr/foreman_virt_who_configure.po +721 -0
  102. data/locale/vi/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  103. data/locale/vi/foreman_virt_who_configure.po +717 -0
  104. data/locale/vi_VN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  105. data/locale/vi_VN/foreman_virt_who_configure.po +718 -0
  106. data/locale/zh/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  107. data/locale/zh/foreman_virt_who_configure.po +717 -0
  108. data/locale/zh_CN/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  109. data/locale/zh_CN/foreman_virt_who_configure.po +22 -13
  110. data/locale/zh_TW/LC_MESSAGES/foreman_virt_who_configure.mo +0 -0
  111. data/locale/zh_TW/foreman_virt_who_configure.po +22 -13
  112. data/test/functional/api/v2/configs_controller_test.rb +1 -1
  113. data/test/unit/output_generator_test.rb +2 -5
  114. metadata +59 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c115626c7b275737586db28847ec80890761da8ea847eef7ecf4fa33cb84e242
4
- data.tar.gz: 39fc91fc5e67ec1ac35ff44f13c892214ba3091b703da325ea7be852a375b181
3
+ metadata.gz: e1ddf912439f6fad74b1e2361a4a2fba2619c178a7b9f4f415b27f0dd416bcdb
4
+ data.tar.gz: a8e82c3e29d4a6a9da64240ab6eb8500d37eafae011c738385411f6a9f1d3a9f
5
5
  SHA512:
6
- metadata.gz: d690c3c56cfe7ad5978c28107ac429bdfaa85a587d95b54a993e32b4543f63649da5aef1f5681bcf1e0aa9a7f92acb243f3dbda6a60d32ba486fe9262d2fd609
7
- data.tar.gz: 37a53a0936528b60cef5245969ee9480397b73cdfef620e38bdcbd2aa8e00db5b009094207928934c4163845129ca132f046067363de9d59b435450a2aca7e7f
6
+ metadata.gz: e5a729769c5455cf399e88ac8e32136d315eab9c95df44e472d453559793d50a9a12f09b058a0b431ecabb55ad6bd113f6472c888a741b2ca69cb4e9ac679f29
7
+ data.tar.gz: 53650766a273bbbbc876ac35e2b6c7d869d2b15e45eb0c79a98eba42094b77f8f4932463d995dd547d8c28decc983b41ef99c4710ca36321cfbae7b6d64bcdd0
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # ForemanVirtWhoConfigure
1
+ # Foreman Virt Who Configure
2
2
 
3
- A foreman plugin to make virt-who configuration easier. This provides simple UI for obtaining required information about the desired virt-who configuration, such as hypervisor credentials, check interval and similar. After the information is gathered, it provides a configuration script that can be used to install and configure the virt-who instance. All incoming reports from such virt-who instance are tracked and monitored by the plugin.
3
+ A Foreman plugin to make virt-who configuration easier. This provides a simple UI for obtaining required information about the desired virt-who configuration, such as hypervisor credentials, check interval and other similar config options. After the information is gathered, it provides a configuration script that can be used to install and configure the virt-who instance. All incoming reports from such virt-who instance are tracked and monitored by the plugin.
4
4
 
5
5
  ## Installation
6
6
 
7
- This plugins requires Katello to be installed in your Foreman instance. If its there, simply install a package with the plugin (rpm only), run migrations and seed by running,
7
+ This plugins requires Katello to be installed in your Foreman instance. If it's there, simply install a package with the plugin (rpm only), run migrations and seed by running,
8
8
 
9
- yum install rubygem-foreman_virt_who_configure
9
+ dnf install rubygem-foreman_virt_who_configure
10
10
  foreman-rake db:migrate
11
11
  foreman-rake db:seed
12
12
 
@@ -14,7 +14,7 @@ foreman-rake db:seed
14
14
 
15
15
  After installation there is new "Virt-who configurations" menu added in "Infrastructure" tab. The "Virt-who configurations" -> "Create Config" provides options to add details about configuration, most of the fields are having inline help.
16
16
 
17
- The virt-who configuration should be in an organization. If organization has not selected then Owner field would be displayed where it is required to select organization. If organization is already selected then Owner field is not displayed and virt-configuration will be automatically created in selected organization scope.
17
+ The virt-who configuration should be in an organization. If an organization has not selected then Owner field would be displayed where it is required to select organization. If organization is already selected then Owner field is not displayed and virt-configuration will be automatically created in selected organization scope.
18
18
 
19
19
  To deploy the configuration click on configuration name on "Virt-who configurations" list page, "Overview" page shows details about configuration and "Deploy page" has all details on deploying configuration.
20
20
 
@@ -26,7 +26,7 @@ Fork and send a Pull Request. Thanks!
26
26
 
27
27
  ## Copyright
28
28
 
29
- Copyright (c) 2017 - Foreman team
29
+ Copyright (c) 2023 - Foreman team
30
30
 
31
31
  This program is free software: you can redistribute it and/or modify
32
32
  it under the terms of the GNU General Public License as published by
@@ -35,8 +35,6 @@ function virt_who_update_hypervisor_fields() {
35
35
  element.closest('.form-group').toggle(selected_type == 'kubevirt');
36
36
  var element = $('#foreman_virt_who_configure_config_hypervisor_server');
37
37
  element.closest('.form-group').toggle(selected_type != 'kubevirt');
38
- var element = $('#foreman_virt_who_configure_config_ahv_update_interval');
39
- element.closest('.form-group').toggle(selected_type == 'ahv');
40
38
  var element = $('#foreman_virt_who_configure_config_ahv_internal_debug');
41
39
  element.closest('.form-group').toggle(selected_type == 'ahv');
42
40
  virt_who_update_listing_mode();
@@ -57,7 +57,6 @@ module ForemanVirtWhoConfigure
57
57
  param :no_proxy, String, :desc => N_("Ignore proxy. A comma-separated list of hostnames or domains or ip addresses to ignore proxy settings for. Optionally this may be set to * to bypass proxy settings for all hostnames domains or ip addresses.")
58
58
  param :organization_id, Integer, :required => true, :desc => N_("Organization of the virt-who configuration") if ::SETTINGS[:organizations_enabled]
59
59
  param :prism_flavor, Config::PRISM_FLAVORS.keys, :desc => N_("Select the Prism flavor you are connecting to"), :required => false
60
- param :ahv_update_interval, Integer, :desc => N_("The frequency of VM-to-host mapping updates for AHV(in seconds)"), :required => false
61
60
  param :ahv_internal_debug, :bool, :desc => N_("Option Enable debugging output is required to enable AHV internal debug. It provides extra AHV debug information when both options are enabled"), :required => false
62
61
  end
63
62
  end
@@ -75,7 +74,7 @@ module ForemanVirtWhoConfigure
75
74
  param_group :config
76
75
 
77
76
  def update
78
- process_response @config.update_attributes(config_params)
77
+ process_response @config.update(config_params)
79
78
  end
80
79
 
81
80
  api :DELETE, '/configs/:id', N_("Delete a virt-who configuration")
@@ -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
@@ -49,18 +49,18 @@ module ForemanVirtWhoConfigure
49
49
  end
50
50
 
51
51
  def update
52
- if @config.update_attributes(config_params)
53
- process_success :object => @config
52
+ if @config.update(config_params)
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
 
@@ -7,7 +7,7 @@ module ForemanVirtWhoConfigure
7
7
  # API parameter filtering_mode gets translated to listing_mode in the controller
8
8
  # We keep both params permitted for compatibility with 1.11
9
9
  :listing_mode, :filtering_mode, :filter_host_parents, :exclude_host_parents, :kubeconfig_path,
10
- :prism_flavor, :ahv_update_interval, :ahv_internal_debug
10
+ :prism_flavor, :ahv_internal_debug
11
11
  ]
12
12
  audited :except => [ :hypervisor_password, :last_report_at, :out_of_date_at ], :associations => []
13
13
  include Authorizable
@@ -72,7 +72,7 @@ module ForemanVirtWhoConfigure
72
72
  'element' => N_('Prism Element')
73
73
  }
74
74
 
75
- AHV_VALID_OPTIONS = %w(prism_flavor ahv_update_interval ahv_internal_debug)
75
+ AHV_VALID_OPTIONS = %w(prism_flavor ahv_internal_debug)
76
76
  KUBEVIRT_VALID_OPTIONS = %w(kubeconfig_path)
77
77
  KUBEVIRT_INVALID_OPTIONS = %w(hypervisor_server hypervisor_username)
78
78
 
@@ -113,7 +113,6 @@ module ForemanVirtWhoConfigure
113
113
  validates :hypervisor_id, :inclusion => HYPERVISOR_IDS
114
114
  validates :interval, :inclusion => AVAILABLE_INTERVALS.keys.map(&:to_i)
115
115
  validates :listing_mode, :inclusion => FILTERING_MODES.keys.map(&:to_i)
116
- validates :ahv_update_interval, numericality: { only_integer: true, allow_nil: true, greater_than: 0 }, :if => Proc.new { |c| c.hypervisor_type == 'ahv' }
117
116
  validates :prism_flavor, :inclusion => {:in => PRISM_FLAVORS.keys, :message => "should be either central or element"}, :if => Proc.new { |c| c.hypervisor_type == 'ahv' }
118
117
  validate :validates_whitelist_blacklist
119
118
  validate :validates_debug_settings, :if => Proc.new { |c| c.hypervisor_type == 'ahv' }
@@ -169,10 +169,9 @@ encrypted_password=$cr_password"
169
169
  def ahv_config_options
170
170
  if config.hypervisor_type == 'ahv'
171
171
  prism_central = config.prism_flavor == "central"
172
- update_interval = config.ahv_update_interval.present? ? "\nupdate_interval=#{config.ahv_update_interval}" : nil
173
172
  internal_debug = config.ahv_internal_debug.present? ? "\nahv_internal_debug=#{config.ahv_internal_debug}" : nil
174
173
 
175
- "\nprism_central=#{prism_central}#{internal_debug}#{update_interval}"
174
+ "\nprism_central=#{prism_central}#{internal_debug}"
176
175
  else
177
176
  ""
178
177
  end
@@ -10,7 +10,7 @@ attributes :name, :interval, :organization_id, :whitelist, :blacklist, :hypervis
10
10
  :hypervisor_type, :hypervisor_server, :hypervisor_username, :debug,
11
11
  :satellite_url, :proxy, :no_proxy, :status, :last_report_at, :out_of_date_at,
12
12
  :filter_host_parents, :exclude_host_parents, :kubeconfig_path,
13
- :prism_flavor, :ahv_update_interval, :ahv_internal_debug
13
+ :prism_flavor, :ahv_internal_debug
14
14
 
15
15
  child :http_proxy do
16
16
  attributes :id, :name, :url
@@ -53,7 +53,6 @@
53
53
  <%= config_attribute :no_proxy, @config.no_proxy, _('Ignore Proxy') if @config.no_proxy.present? %>
54
54
  <%= config_attribute :kubeconfig_path, @config.kubeconfig_path if @config.hypervisor_type == 'kubevirt' %>
55
55
  <%= config_attribute :prism_flavor, @config.prism_flavor if @config.hypervisor_type == 'ahv' %>
56
- <%= config_attribute :ahv_update_interval, @config.ahv_update_interval if @config.hypervisor_type == 'ahv' %>
57
56
  <%= config_attribute :ahv_internal_debug, checked_icon(@config.ahv_internal_debug) if @config.hypervisor_type == 'ahv' %>
58
57
  </div>
59
58
  </div>
@@ -26,6 +26,5 @@
26
26
  <%= selectable_f f, :prism_flavor, {'' => 'Nothing selected'}.merge(ForemanVirtWhoConfigure::Config::PRISM_FLAVORS).map { |k,v| [_(v), k] },
27
27
  {}, { label: _('Prism Flavor'), :required => true }.merge(
28
28
  inline_help_popover(_("Select the Prism flavor you are connecting to"))) %>
29
- <%= text_f f, :ahv_update_interval, inline_help_popover(_('The frequency of VM-to-host mapping updates for AHV(in seconds)')).merge(:label => _('AHV update interval')) %>
30
29
  <%= checkbox_f f, :ahv_internal_debug, inline_help_popover(_('Option Enable debugging output is required to enable AHV internal debug. It provides extra AHV debug information when both options are enabled ')).merge(:label => _('Enable AHV debug')) %>
31
30
  </div>
@@ -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.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>
@@ -0,0 +1,5 @@
1
+ class RemoveAhvUpdateIntervalFromConfig < ActiveRecord::Migration[6.0]
2
+ def change
3
+ remove_column :foreman_virt_who_configure_configs, :ahv_update_interval, :integer
4
+ end
5
+ end
@@ -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.12'.freeze
2
+ VERSION = '0.5.14'.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")