foreman_virt_who_configure 0.5.1 → 0.5.2
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: b2f81954f513244fa71dc19f9629494140c96c6f71c915c796efde096a52a1b7
|
4
|
+
data.tar.gz: 625fc61c55a5947a1180231b1ac249f0971941c66c3808c45a778e1a7fdeac42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ad29fe8c09273a39f0252467ea47d556a585c186d3f9d50a4c3f2b47abafbaf769d72bd84aca2261d2e3e95621e7a2a3a4145a6e2a8bf4d6731e51ed287b3c6
|
7
|
+
data.tar.gz: 9f15813bd839f16eea992dd9b8c9800e435665f8ed51e420e701a8d67c213d8783b83f865f70530bd49d09a4e83efb51e20f465ad5036c10321ecb8affbfeae6
|
@@ -83,8 +83,25 @@ verify_minimal_version() {
|
|
83
83
|
}
|
84
84
|
|
85
85
|
result_code=#{error_code(:success)}
|
86
|
+
|
87
|
+
compose_install_command() {
|
88
|
+
$1 packages unlock
|
89
|
+
$1 advanced procedure run packages-install --packages virt-who --assumeyes || result_code=$(($result_code|#{error_code(:virt_who_installation)}))
|
90
|
+
$1 packages lock
|
91
|
+
}
|
92
|
+
|
93
|
+
install_virt_who() {
|
94
|
+
if `rpm -q satellite-maintain > /dev/null`; then
|
95
|
+
compose_install_command satellite-maintain
|
96
|
+
elif `rpm -q rubygem-foreman_maintain > /dev/null`; then
|
97
|
+
compose_install_command foreman-maintain
|
98
|
+
else
|
99
|
+
yum install -y virt-who || result_code=$(($result_code|#{error_code(:virt_who_installation)}))
|
100
|
+
fi
|
101
|
+
}
|
102
|
+
|
86
103
|
step 1 "Installing virt-who"
|
87
|
-
|
104
|
+
install_virt_who
|
88
105
|
|
89
106
|
if verify_minimal_version; then
|
90
107
|
step 2 "Encrypting password"
|
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.2
|
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: 2020-02
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: katello
|