simp-beaker-helpers 1.27.0 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/simp/beaker_helpers/version.rb +1 -1
- data/lib/simp/beaker_helpers.rb +17 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 893037080c5711de66388dabf435c509163179798e9dd79d1f842a45e1ab4cc2
|
4
|
+
data.tar.gz: be745da1931e76ba7ec1ee393da84563ef7b35f7aaf915b52a4d73228490db1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6abb6b44e5489fe7d18111076140f560959076c79815fce68793346353a0d60d8071cc67407376c1f4a2d033d363100efc77f6a7ef6cca877a44ef699623402
|
7
|
+
data.tar.gz: d03bbcb53b3f74d8f3d907b878cc46b7991057e18a179257342bf9533f96216e5374d16066095f7e80e08df381576641b87d7f7d5c8a3dcb8826040f7266663a
|
data/CHANGELOG.md
CHANGED
data/lib/simp/beaker_helpers.rb
CHANGED
@@ -643,7 +643,7 @@ module Simp::BeakerHelpers
|
|
643
643
|
"https://dl.fedoraproject.org/pub/epel/epel-release-latest-#{os_maj_rel}.noarch.rpm",
|
644
644
|
)
|
645
645
|
|
646
|
-
if os_info['name'] == 'RedHat'
|
646
|
+
if os_info['name'] == 'RedHat' && ENV['BEAKER_RHSM_USER'] && ENV['BEAKER_RHSM_PASS']
|
647
647
|
if os_maj_rel == '7'
|
648
648
|
on sut, %{subscription-manager repos --enable "rhel-*-optional-rpms"}
|
649
649
|
on sut, %{subscription-manager repos --enable "rhel-*-extras-rpms"}
|
@@ -836,7 +836,8 @@ module Simp::BeakerHelpers
|
|
836
836
|
|
837
837
|
if os == 'RedHat'
|
838
838
|
unless rhsm_opts[:username] && rhsm_opts[:password]
|
839
|
-
|
839
|
+
warn("BEAKER_RHSM_USER and/or BEAKER_RHSM_PASS not set on RHEL system.", "Assuming that subscription-manager is not needed. This may prevent packages from installing")
|
840
|
+
return
|
840
841
|
end
|
841
842
|
|
842
843
|
sub_status = on(sut, 'subscription-manager status', :accept_all_exit_codes => true)
|
@@ -874,24 +875,30 @@ module Simp::BeakerHelpers
|
|
874
875
|
end
|
875
876
|
|
876
877
|
def rhel_repo_enable(suts, repos)
|
877
|
-
|
878
|
-
|
879
|
-
|
878
|
+
if ENV['BEAKER_RHSM_USER'] && ENV['BEAKER_RHSM_PASS']
|
879
|
+
block_on(suts, :run_in_parallel => @run_in_parallel) do |sut|
|
880
|
+
Array(repos).each do |repo|
|
881
|
+
on(sut, %{subscription-manager repos --enable #{repo}})
|
882
|
+
end
|
880
883
|
end
|
881
884
|
end
|
882
885
|
end
|
883
886
|
|
884
887
|
def rhel_repo_disable(suts, repos)
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
+
if ENV['BEAKER_RHSM_USER'] && ENV['BEAKER_RHSM_PASS']
|
889
|
+
block_on(suts, :run_in_parallel => @run_in_parallel) do |sut|
|
890
|
+
Array(repos).each do |repo|
|
891
|
+
on(sut, %{subscription-manager repos --disable #{repo}}, :accept_all_exit_codes => true)
|
892
|
+
end
|
888
893
|
end
|
889
894
|
end
|
890
895
|
end
|
891
896
|
|
892
897
|
def rhel_rhsm_unsubscribe(suts)
|
893
|
-
|
894
|
-
|
898
|
+
if ENV['BEAKER_RHSM_USER'] && ENV['BEAKER_RHSM_PASS']
|
899
|
+
block_on(suts, :run_in_parallel => @run_in_parallel) do |sut|
|
900
|
+
on(sut, %{subscription-manager unregister}, :accept_all_exit_codes => true)
|
901
|
+
end
|
895
902
|
end
|
896
903
|
end
|
897
904
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simp-beaker-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Tessmer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|