File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 55class foreman_proxy::plugin::ansible::runner (
66 String $package_name = $foreman_proxy::plugin::ansible::runner_package_name,
77) {
8- if $facts [' os' ][' family' ] == ' RedHat' {
9- yumrepo { 'ansible-runner' :
10- ensure => absent ,
11- before => Package[$package_name ],
12- }
13- }
14-
158 package { $package_name:
169 ensure => ' installed' ,
1710 }
Original file line number Diff line number Diff line change 1616 it { should contain_package ( 'python3-ansible-runner' ) . with_ensure ( 'installed' ) }
1717 it { should contain_package ( 'ansible-collection-theforeman-foreman' ) . with_ensure ( 'installed' ) }
1818 when 'redhat-7-x86_64'
19- it 'should include ansible-runner upstream repo' do
20- should contain_yumrepo ( 'ansible-runner' )
21- . with_ensure ( 'absent' )
22- . that_comes_before ( 'Package[ansible-runner]' )
23- end
2419 it { should contain_package ( 'ansible-runner' ) . with_ensure ( 'installed' ) }
2520 it { should contain_package ( 'ansible-collection-theforeman-foreman' ) . with_ensure ( 'installed' ) }
2621 end
6863 it { should_not contain_apt__source ( 'ansible-runner' ) }
6964 it { should contain_package ( 'python3-ansible-runner' ) . with_ensure ( 'installed' ) }
7065 when 'redhat-7-x86_64'
71- it { should_not contain_yumrepo ( 'ansible-runner' ) }
7266 it { should contain_package ( 'ansible-runner' ) . with_ensure ( 'installed' ) }
7367 end
7468
10599 it 'should not contain ansible-runner' do
106100 should_not contain_class ( 'foreman_proxy::plugin::ansible::runner' )
107101 should_not contain_apt__source ( 'ansible-runner' )
108- should_not contain_yumrepo ( 'ansible-runner' )
109102 should_not contain_package ( 'ansible-runner' )
110103 should_not contain_package ( 'python3-ansible-runner' )
111104 end
You can’t perform that action at this time.
0 commit comments