aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-10-13 18:47:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-10-13 18:47:58 -0300
commited11b672c44f85700c940bc0aa690d0d4f324918 (patch)
tree3ba13a74919fe8261a83ee4653bef1d7a024ea88
parent9775fe50da34f2e513d9e102f646341c514ec318 (diff)
downloadpuppet-nodo-ed11b672c44f85700c940bc0aa690d0d4f324918.tar.gz
puppet-nodo-ed11b672c44f85700c940bc0aa690d0d4f324918.tar.bz2
Adds nodo::subsystem::sshd::manage
-rw-r--r--manifests/subsystem/sshd.pp24
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,
+ },
+ }
}
}