Skip to content

Commit

Permalink
Fixes #30133 - Install python3-subscription-manager-rhsm
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 authored and wbclark committed Jun 19, 2020
1 parent 5ea05a8 commit bed36c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions manifests/plugin/certguard.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# @summary Pulp Certguard plugin
class pulpcore::plugin::certguard {
if $facts['os']['release']['major'] == '7' {
package { 'python3-subscription-manager-rhsm':
ensure => present,
}
}
pulpcore::plugin { 'certguard':
}
}
6 changes: 5 additions & 1 deletion spec/classes/plugin_certguard_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
let(:facts) { os_facts }

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_pulpcore__plugin('certguard') }
case os
when /\-7-/
it { is_expected.to contain_package('python3-subscription-manager-rhsm').with(ensure: 'present') }
end
it { is_expected.to contain_pulpcore__plugin('certguard') }

context 'with pulpcore' do
let(:pre_condition) { 'include pulpcore' }
Expand Down

0 comments on commit bed36c5

Please sign in to comment.