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: ee0215d08a85e32061608ec7f2452a0d6df0cc73a322491582aa3704b43f81a0
4
- data.tar.gz: 93df5caf56ec4158b525485a7f04656ef03a6a61b1b592c54c7c3397e09a488f
3
+ metadata.gz: b2f81954f513244fa71dc19f9629494140c96c6f71c915c796efde096a52a1b7
4
+ data.tar.gz: 625fc61c55a5947a1180231b1ac249f0971941c66c3808c45a778e1a7fdeac42
5
5
  SHA512:
6
- metadata.gz: 49be70fdb7fa4fda78219dbc332754ef38628749eda69499fdfdb238bc1aa6b2c5be9fe2c791d9e11b86ba7b34ac4196c51db467d99b522357467098eba12ed0
7
- data.tar.gz: e05cf7553259f2303652c9d4fe72c0ebb05ac975dd2b41b31dfebff88b640a31d26186293e160b6e5b9dd25a2bc1baacceb3393ec6d12eb5e10bc29f327817ff
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
- yum install -y virt-who || result_code=$(($result_code|#{error_code(:virt_who_installation)}))
104
+ install_virt_who
88
105
 
89
106
  if verify_minimal_version; then
90
107
  step 2 "Encrypting password"
@@ -1,3 +1,3 @@
1
1
  module ForemanVirtWhoConfigure
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
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.1
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-25 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: katello