foreman_virt_who_configure 0.5.20 → 0.5.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/app/models/foreman_virt_who_configure/output_generator.rb +3 -2
- data/app/views/foreman_virt_who_configure/configs/steps/_connection_form.erb +1 -1
- data/lib/foreman_virt_who_configure/version.rb +1 -1
- data/test/unit/output_generator_test.rb +3 -3
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec81d0d25964289226511f89e97ba3f1206a2c507e7b2397f84f8733074f4c9
|
4
|
+
data.tar.gz: 128103a173ff39059da75e62c406346a7814855ad94b0b3584a9ab5e65b69fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 779b402b0d303138bbe654ef8ed3fb17ad227cafa82977cec81ba84da5cde29d54e1aa743b51f35b0deeafc2a3073ab6c39c31d3f919cbfa0000ee6f7455af85
|
7
|
+
data.tar.gz: 3fe10668d94b0b5b8b81e95def0f8e353b4a8e98e5d7013be2b63934004083967f714434d6a867260c45c7363c5b59a300ba75838f361dfe5be5a6e26641a8ab
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
APP_RAKEFILE = File.expand_path('
|
23
|
+
APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
|
24
24
|
|
25
25
|
Bundler::GemHelper.install_tasks
|
26
26
|
|
@@ -131,8 +131,10 @@ module ForemanVirtWhoConfigure
|
|
131
131
|
### manual edits will be deleted.
|
132
132
|
[global]
|
133
133
|
debug=#{config.debug? ? 1 : 0}
|
134
|
-
interval=#{config.interval * 60}
|
134
|
+
interval=#{config.interval * 60}
|
135
135
|
oneshot=False
|
136
|
+
|
137
|
+
[system_environment]#{proxy_strings}
|
136
138
|
EOF
|
137
139
|
if [ $? -ne 0 ]; then result_code=$(($result_code|#{error_code(:virt_who_sysconfig_file_issue)})); fi
|
138
140
|
|
@@ -289,7 +291,6 @@ encrypted_password=$cr_password"
|
|
289
291
|
output = ''
|
290
292
|
output << "\n#{proxy_type}=#{sanitize_proxy(proxy.full_url)}" if proxy.present?
|
291
293
|
output << "\nno_proxy=#{sanitize_proxy(no_proxy)}" if no_proxy.present?
|
292
|
-
output << "\nno_proxy=*" if proxy.blank? && no_proxy.blank?
|
293
294
|
output
|
294
295
|
end
|
295
296
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<%= textarea_f f, :exclude_host_parents, inline_help_popover(_('Exclude hosts which cluster ID is specified in comma-separated list in this option will <b>NOT</b> be reported. PowerCLI command to find the domain names in VMware <code>Get-Cluster “ClusterName” | Select ID</code>. Wildcards and regular expressions are supported, multiple records must be separated by comma. Put the value into the double-quotes if it contains special characters like comma. All new line characters will be removed in resulting configuration file, white spaces are removed from beginning and end.')).merge(:label => _('Exclude host parents')) %>
|
19
19
|
|
20
20
|
<%= checkbox_f f, :debug, { :label => _('Enable debugging output') }.merge(inline_help_popover(_("Different debug value can't be set per hypervisor, therefore it will affect all other deployed configurations on the host on which this configuration will be deployed."))) %>
|
21
|
-
<%= select_f f, :http_proxy_id, HttpProxy.all, :id, :
|
21
|
+
<%= select_f f, :http_proxy_id, HttpProxy.all, :id, :name, {:include_blank => true}, { :label => _('HTTP Proxy') }.merge(
|
22
22
|
inline_help_popover(_('HTTP proxy that should be used for communication between the server on which virt-who is running and the hypervisors and virtualization managers. Leave this blank if no proxy is used.').html_safe)) %>
|
23
23
|
<%= text_f f, :no_proxy, inline_help_popover(_('A comma-separated list of hostnames or domains or ip addresses to ignore proxy settings for. Optionally this may be set to <code>*</code> to bypass proxy settings for all hostnames domains or ip addresses.')).merge(:label => _('Ignore proxy')) %>
|
24
24
|
<%= text_f f, :kubeconfig_path, inline_help_popover(_('Configuration file containing details about how to connect to the cluster and authentication details')).merge(:label => _('Path to kubeconfig file')) %>
|
@@ -57,8 +57,8 @@ module ForemanVirtWhoConfigure
|
|
57
57
|
|
58
58
|
describe 'proxy attributes' do
|
59
59
|
test 'it does not set any proxy attributes by default and set no_proxy to * to bypass sub-man proxy' do
|
60
|
-
|
61
|
-
|
60
|
+
config.http_proxy = nil
|
61
|
+
config.no_proxy = '*'
|
62
62
|
assert_not_includes output, 'http_proxy'
|
63
63
|
assert_includes output, 'no_proxy=*'
|
64
64
|
end
|
@@ -86,7 +86,7 @@ module ForemanVirtWhoConfigure
|
|
86
86
|
config.http_proxy = nil
|
87
87
|
config.no_proxy = ''
|
88
88
|
assert_not_includes generator.proxy_strings, 'http_proxy'
|
89
|
-
|
89
|
+
assert_not_includes generator.proxy_strings, 'no_proxy=*'
|
90
90
|
end
|
91
91
|
|
92
92
|
test 'proxy_strings removes any new line chars' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_virt_who_configure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman virt-who-configure team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: rubocop
|
28
|
+
name: theforeman-rubocop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.0.6
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.0.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,7 +240,7 @@ homepage: https://github.com/theforeman/foreman_virt_who_configure
|
|
240
240
|
licenses:
|
241
241
|
- GPLv3
|
242
242
|
metadata: {}
|
243
|
-
post_install_message:
|
243
|
+
post_install_message:
|
244
244
|
rdoc_options: []
|
245
245
|
require_paths:
|
246
246
|
- lib
|
@@ -255,8 +255,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
- !ruby/object:Gem::Version
|
256
256
|
version: '0'
|
257
257
|
requirements: []
|
258
|
-
rubygems_version: 3.
|
259
|
-
signing_key:
|
258
|
+
rubygems_version: 3.4.10
|
259
|
+
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: A plugin to make virt-who configuration easy
|
262
262
|
test_files:
|