diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-16 16:54:37 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-16 16:54:37 -0300 |
commit | 96943608ea4a83ec6978c955ce1e1011c64e668e (patch) | |
tree | 1a8c215ddcdea63b0362c2d354b6d96981256f31 /manifests/defines/ssh_folder.pp | |
parent | 5055135b544026487c79d3cc71cfebf94c1fd994 (diff) | |
download | puppet-nodo-96943608ea4a83ec6978c955ce1e1011c64e668e.tar.gz puppet-nodo-96943608ea4a83ec6978c955ce1e1011c64e668e.tar.bz2 |
Defining nodo::subsystem::ssh_folder as resource type
Diffstat (limited to 'manifests/defines/ssh_folder.pp')
-rw-r--r-- | manifests/defines/ssh_folder.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/defines/ssh_folder.pp b/manifests/defines/ssh_folder.pp new file mode 100644 index 0000000..e61ec02 --- /dev/null +++ b/manifests/defines/ssh_folder.pp @@ -0,0 +1,15 @@ +# Manage a ssh folder +define ssh_folder( + $home, + $owner, + $group, +) { + if !defined(File["${home}/.ssh"]) { + file { "${home}/.ssh": + ensure => directory, + owner => $owner, + group => $group, + mode => 0700, + } + } +} |