aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/ssh_folder.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-16 16:54:37 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-16 16:54:37 -0300
commit96943608ea4a83ec6978c955ce1e1011c64e668e (patch)
tree1a8c215ddcdea63b0362c2d354b6d96981256f31 /manifests/defines/ssh_folder.pp
parent5055135b544026487c79d3cc71cfebf94c1fd994 (diff)
downloadpuppet-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.pp15
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,
+ }
+ }
+}