aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/ssh_folder.pp
diff options
context:
space:
mode:
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,
+ }
+ }
+}