foreman_virt_who_configure 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b49618448e8a187353b80fba1a83359bdab3356d5fd61cba7d3ce4c5e46fa0d
|
4
|
+
data.tar.gz: b4aa7bc48dfba7dcff8c2daeab3d50b377371c7b9357d538c01be5a98a512c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3afe8fdd3d3a7e9afa4dd8f161d809101cf4e80197427073a99d10ec2f1c029ff62f8ff41c33be6db8a4e5cb9ce18204ad55a6ee462b554d10d2cc0b3c0e1fbc
|
7
|
+
data.tar.gz: d13dd560a075d680d13ccfd395d7a7321b1b5e5f8b58bd8a51d00aa35082aec61b54c82c5a8f1b0fb970c421a08822e7b5b854b5e089215a6c17c710ee67b1b6
|
@@ -99,10 +99,7 @@ if verify_minimal_version; then
|
|
99
99
|
type=#{type}
|
100
100
|
hypervisor_id=#{hypervisor_id}
|
101
101
|
owner=#{owner}
|
102
|
-
env=Library
|
103
|
-
server=#{cr_server}
|
104
|
-
username=#{cr_username}
|
105
|
-
encrypted_password=$cr_password#{filtering}
|
102
|
+
env=Library#{connection_details}
|
106
103
|
rhsm_hostname=#{satellite_url}
|
107
104
|
rhsm_username=#{service_user_username}
|
108
105
|
rhsm_encrypted_password=$user_password
|
@@ -139,6 +136,16 @@ EOS
|
|
139
136
|
result
|
140
137
|
end
|
141
138
|
|
139
|
+
def connection_details
|
140
|
+
if config.hypervisor_type == 'kubevirt'
|
141
|
+
""
|
142
|
+
else
|
143
|
+
"\nserver=#{cr_server}
|
144
|
+
username=#{cr_username}
|
145
|
+
encrypted_password=$cr_password#{filtering}"
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
142
149
|
def error_handling
|
143
150
|
CONFIGURATION_RESULTS.map do |result|
|
144
151
|
"[ $(($result_code&#{result.code})) -ge 1 ] && echo '#{result.message}'"
|
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.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman virt-who-configure team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|
@@ -146,8 +146,8 @@ signing_key:
|
|
146
146
|
specification_version: 4
|
147
147
|
summary: A plugin to make virt-who configuration easy
|
148
148
|
test_files:
|
149
|
+
- test/factories/foreman_virt_who_configure_factories.rb
|
150
|
+
- test/test_plugin_helper.rb
|
149
151
|
- test/unit/config_test.rb
|
150
152
|
- test/unit/output_generator_test.rb
|
151
|
-
- test/test_plugin_helper.rb
|
152
153
|
- test/functional/api/v2/configs_controller_test.rb
|
153
|
-
- test/factories/foreman_virt_who_configure_factories.rb
|