diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-10-13 18:47:58 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-10-13 18:47:58 -0300 |
commit | ed11b672c44f85700c940bc0aa690d0d4f324918 (patch) | |
tree | 3ba13a74919fe8261a83ee4653bef1d7a024ea88 /manifests/subsystem/sshd.pp | |
parent | 9775fe50da34f2e513d9e102f646341c514ec318 (diff) | |
download | puppet-nodo-ed11b672c44f85700c940bc0aa690d0d4f324918.tar.gz puppet-nodo-ed11b672c44f85700c940bc0aa690d0d4f324918.tar.bz2 |
Adds nodo::subsystem::sshd::manage
Diffstat (limited to 'manifests/subsystem/sshd.pp')
-rw-r--r-- | manifests/subsystem/sshd.pp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/manifests/subsystem/sshd.pp b/manifests/subsystem/sshd.pp index 3327de8..c520c9e 100644 --- a/manifests/subsystem/sshd.pp +++ b/manifests/subsystem/sshd.pp @@ -1,14 +1,18 @@ class nodo::subsystem::sshd { - include ::sshd + $manage = hiera('nodo::subsystem::sshd::manage', true) - # Add the localhost ssh key, useful when one needs - # to ssh to localhost. - sshkey { [ 'localhost', '127.0.0.1' ]: - type => ssh-rsa, - key => $::sshrsakey, - ensure => $::sshrsakey ? { - '' => absent, - default => present, - }, + if $manage == true { + include ::sshd + + # Add the localhost ssh key, useful when one needs + # to ssh to localhost. + sshkey { [ 'localhost', '127.0.0.1' ]: + type => ssh-rsa, + key => $::sshrsakey, + ensure => $::sshrsakey ? { + '' => absent, + default => present, + }, + } } } |