From 034fde12b6497673b156f67c7133b24035d43b93 Mon Sep 17 00:00:00 2001 From: Andrew Teixeira Date: Fri, 15 Sep 2017 11:31:59 -0400 Subject: [PATCH] * Add the ability to override home directory for the created user --- manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index a46105d3..444188b9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -13,6 +13,10 @@ # (string) Puppetboard system user. # Defaults to 'puppetboard' ($::puppetboard::params::user) # +# [*homedir*] +# (string) Puppetboard system user's home directory. +# Defaults to undef, which will make the default home directory /home/$user +# # [*group*] # (string) Puppetboard system group. # Defaults to 'puppetboard' ($::puppetboard::params::group) @@ -154,6 +158,7 @@ # class puppetboard( $user = $::puppetboard::params::user, + Optional[String] $homedir = undef, $group = $::puppetboard::params::group, $groups = $::puppetboard::params::groups, $basedir = $::puppetboard::params::basedir, @@ -197,6 +202,7 @@ user { $user: ensure => present, shell => '/bin/bash', + home => $homedir, managehome => true, gid => $group, system => true,