diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index d517449..b909686 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -29,13 +29,20 @@ class etherpad( group { "etherpad-lite": ensure => $ensure, allowdupe => false, + require => $ensure ? { + present => undef, + default => User['etherpad-lite'], # Make sure the user is removed first + } } user { "etherpad-lite": ensure => $ensure, allowdupe => false, gid => 'etherpad-lite', - require => Group['etherpad-lite'], + require => $ensure ? { + present => Group['etherpad-lite'], + default => undef, + } } file { '/home/etherpad-lite': |