Skip to content

Commit 907200b

Browse files
committed
stop removing ansible runner yumrepo
we stopped using it a long time ago, and had it on "absent" for a while.
1 parent 32de4bd commit 907200b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

manifests/plugin/ansible/runner.pp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
class 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
}

spec/classes/foreman_proxy__plugin__ansible_spec.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
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
@@ -68,7 +63,6 @@
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

@@ -105,7 +99,6 @@
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

0 commit comments

Comments
 (0)