From 2adfee9f7610e0583e6d51effca60f68f2223be2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 19 Aug 2010 18:13:31 -0300 Subject: Managing users and groups 'clamav' and 'amavis' --- manifests/amavisd.pp | 10 ++++++++++ manifests/clamav.pp | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 manifests/clamav.pp diff --git a/manifests/amavisd.pp b/manifests/amavisd.pp index d59670a..85e2501 100644 --- a/manifests/amavisd.pp +++ b/manifests/amavisd.pp @@ -18,5 +18,15 @@ class mail::amavisd { notify => Service['amavisd'], } + group { 'amavis': + ensure => present, + } + + user { 'amavis': + ensure => present, + gid => 'amavis', + require => Group['amavis'], + } + postfix::config { "content_filter": value => 'amavis:[127.0.0.1]:10024' } } diff --git a/manifests/clamav.pp b/manifests/clamav.pp new file mode 100644 index 0000000..b2f8ef4 --- /dev/null +++ b/manifests/clamav.pp @@ -0,0 +1,12 @@ +class mail::clamav { + group { 'clamav': + ensure => present, + } + + user { 'clamav': + ensure => present, + gid => 'clamav', + groups => [ 'amavis' ], + require => Group['clamav', 'amavis'], + } +} -- cgit v1.2.3