Skip to content

Commit

Permalink
[REX SSH Plugin] Purge net-ssh-krb package
Browse files Browse the repository at this point in the history
The package is not required since smart_proxy_remote_execution_ssh-0.5.0
and is no longer packaged in foreman repositories
  • Loading branch information
wbclark committed Mar 21, 2022
1 parent bed270b commit ce9e578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions manifests/plugin/remote_execution/ssh.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@
listen_on => $listen_on,
}

if $ssh_kerberos_auth {
$kerberos_pkg = "${foreman_proxy::params::ruby_package_prefix}net-ssh-krb"
package { $kerberos_pkg:
ensure => present,
}
$kerberos_pkg = "${foreman_proxy::params::ruby_package_prefix}net-ssh-krb"
package { $kerberos_pkg:
ensure => purged,
}

if $generate_keys {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

it { should_not contain_file('/root/.ssh') }
it { should_not contain_package(package_name) }
it { should contain_package(package_name).with_ensure('purged') }
end

describe 'with override parameters' do
Expand Down Expand Up @@ -66,7 +66,7 @@

it { should_not contain_exec('generate_ssh_key') }
it { should_not contain_file('/root/.ssh') }
it { should contain_package(package_name) }
it { should contain_package(package_name).with_ensure('purged') }
end

describe 'with ssh key generating and installation' do
Expand Down

0 comments on commit ce9e578

Please sign in to comment.