diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2021-04-14 19:32:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2021-04-14 19:32:35 -0300 |
commit | 4b7f9657d85bd90c4231ab077d389c8e282dae5b (patch) | |
tree | 8d16bb6b5ba31ddd907bf8a7ff45742d09ca52aa /manifests | |
parent | c69e94c9e03b4c1aa2928b0108ad7066fe08bbe9 (diff) | |
download | puppet-postfix-4b7f9657d85bd90c4231ab077d389c8e282dae5b.tar.gz puppet-postfix-4b7f9657d85bd90c4231ab077d389c8e282dae5b.tar.bz2 |
Feat: manage postfix user and group
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 13 |
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']) { |