]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Feat: manage postfix user and group
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Apr 2021 22:32:35 +0000 (19:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Apr 2021 22:32:35 +0000 (19:32 -0300)
manifests/init.pp

index 81c3a916834cd8b8ea091533e2060a306a7a9811..9111a5b7e75174e26a9786533427bafd6440242c 100644 (file)
@@ -121,8 +121,19 @@ class postfix(
     include postfix::virtual_regexp
   }
 
+  group { 'postfix':
+    ensure => present,
+  }
+
+  user { 'postfix':
+    ensure  => present,
+    gid     => 'postfix',
+    require => Group['postfix'],
+  }
+
   package { 'postfix':
-    ensure => installed,
+    ensure  => installed,
+    require => [ Group['postfix'], User['postfix'], ],
   }
 
   if !defined(Package['mailx']) {