From 96943608ea4a83ec6978c955ce1e1011c64e668e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 16 Mar 2014 16:54:37 -0300 Subject: Defining nodo::subsystem::ssh_folder as resource type --- manifests/defines/ssh_folder.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 manifests/defines/ssh_folder.pp (limited to 'manifests/defines/ssh_folder.pp') 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, + } + } +} -- cgit v1.2.3