aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2021-04-14 19:32:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2021-04-14 19:32:35 -0300
commit4b7f9657d85bd90c4231ab077d389c8e282dae5b (patch)
tree8d16bb6b5ba31ddd907bf8a7ff45742d09ca52aa
parentc69e94c9e03b4c1aa2928b0108ad7066fe08bbe9 (diff)
downloadpuppet-postfix-4b7f9657d85bd90c4231ab077d389c8e282dae5b.tar.gz
puppet-postfix-4b7f9657d85bd90c4231ab077d389c8e282dae5b.tar.bz2
Feat: manage postfix user and group
-rw-r--r--manifests/init.pp13
1 files changed, 12 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 81c3a91..9111a5b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -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']) {