diff options
Diffstat (limited to 'manifests/subsystem/ssh/folder.pp')
-rw-r--r-- | manifests/subsystem/ssh/folder.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/subsystem/ssh/folder.pp b/manifests/subsystem/ssh/folder.pp new file mode 100644 index 0000000..462f8fb --- /dev/null +++ b/manifests/subsystem/ssh/folder.pp @@ -0,0 +1,16 @@ +# Manage a ssh folder +define nodo:subsystem::ssh::folder( + $home, + $owner, + $group, + $ensure = 'directory', +) { + if !defined(File["${home}/.ssh"]) { + file { "${home}/.ssh": + ensure => $ensure, + owner => $owner, + group => $group, + mode => 0700, + } + } +} |