summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp3
-rw-r--r--manifests/openbsd/defaults.pp9
2 files changed, 10 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 46ad3f4..1a5b4e7 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,6 +15,7 @@ define user::define_user(
$uid,
$gid,
$home_dir = '',
+ $home_dir_mode = '0750',
$ssh_key = '',
$shell = ''
){
@@ -60,7 +61,7 @@ define user::define_user(
file {$real_home_dir:
ensure => directory,
- mode => 0750, owner => $name, group => $gid;
+ mode => $home_dir_mode, owner => $name, group => $gid;
}
case $ssh_key {
diff --git a/manifests/openbsd/defaults.pp b/manifests/openbsd/defaults.pp
index 8ef1d0f..8b80fdc 100644
--- a/manifests/openbsd/defaults.pp
+++ b/manifests/openbsd/defaults.pp
@@ -2,6 +2,13 @@
class user::openbsd::defaults {
# we need this somehow to mange it
- user::define_user{root: name => 'root', name_comment => 'Charlie &',uid => '0', gid => '0', home_dir => '/root/'}
+ user::define_user{root:
+ name => 'root',
+ name_comment => 'Charlie &',
+ uid => '0',
+ gid => '0',
+ home_dir => '/root/',
+ home_dir_mode = '0700',
+ }
}