Skip to content

Commit

Permalink
stop removing ansible runner yumrepo
Browse files Browse the repository at this point in the history
we stopped using it a long time ago, and had it on "absent" for a while.
  • Loading branch information
evgeni committed Sep 23, 2024
1 parent 32de4bd commit 907200b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions manifests/plugin/ansible/runner.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
class foreman_proxy::plugin::ansible::runner (
String $package_name = $foreman_proxy::plugin::ansible::runner_package_name,
) {
if $facts['os']['family'] == 'RedHat' {
yumrepo { 'ansible-runner':
ensure => absent,
before => Package[$package_name],
}
}

package { $package_name:
ensure => 'installed',
}
Expand Down
7 changes: 0 additions & 7 deletions spec/classes/foreman_proxy__plugin__ansible_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
it { should contain_package('python3-ansible-runner').with_ensure('installed') }
it { should contain_package('ansible-collection-theforeman-foreman').with_ensure('installed') }
when 'redhat-7-x86_64'
it 'should include ansible-runner upstream repo' do
should contain_yumrepo('ansible-runner')
.with_ensure('absent')
.that_comes_before('Package[ansible-runner]')
end
it { should contain_package('ansible-runner').with_ensure('installed') }
it { should contain_package('ansible-collection-theforeman-foreman').with_ensure('installed') }
end
Expand Down Expand Up @@ -68,7 +63,6 @@
it { should_not contain_apt__source('ansible-runner') }
it { should contain_package('python3-ansible-runner').with_ensure('installed') }
when 'redhat-7-x86_64'
it { should_not contain_yumrepo('ansible-runner') }
it { should contain_package('ansible-runner').with_ensure('installed') }
end

Expand Down Expand Up @@ -105,7 +99,6 @@
it 'should not contain ansible-runner' do
should_not contain_class('foreman_proxy::plugin::ansible::runner')
should_not contain_apt__source('ansible-runner')
should_not contain_yumrepo('ansible-runner')
should_not contain_package('ansible-runner')
should_not contain_package('python3-ansible-runner')
end
Expand Down

0 comments on commit 907200b

Please sign in to comment.