Skip to content

Commit

Permalink
Moved gem installation to init where it should have been.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhg03a committed Jan 30, 2016
1 parent 1097136 commit 67133ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 7 additions & 0 deletions manifests/init.pp
Expand Up @@ -102,6 +102,13 @@
$middleware_ssl_cert_path = "${ssldir}/middleware_cert.pem"
$middleware_ssl_ca_path = "${ssldir}/middleware_ca.pem"

if $securityprovider == 'sshkey' {
package{'sshkeyauth':
ensure => 'present',
provider => 'puppet_gem',
}
}

if $sshkey_server_learn_public_keys {
$sshkey_server_publickey_dir_real = pick($sshkey_server_publickey_dir,"${confdir}/sshkey_pubkeys")
}
Expand Down
5 changes: 0 additions & 5 deletions manifests/server/config/securityprovider/sshkey.pp
Expand Up @@ -4,11 +4,6 @@
fail("Use of private class ${name} by ${caller_module_name}")
}

ensure_packages('sshkeyauth', {
'ensure' => 'present',
'provider' => 'puppet_gem', }
)

if $mcollective::sshkey_server_learn_public_keys {
# In the event the node is both a server and a client and they share a public key directory
ensure_resource('file', $mcollective::sshkey_server_publickey_dir_real, {
Expand Down

0 comments on commit 67133ae

Please sign in to comment.