]> gitweb.fluxo.info Git - puppet-mail.git/commitdiff
Managing users and groups 'clamav' and 'amavis'
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Aug 2010 21:13:31 +0000 (18:13 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 19 Aug 2010 21:13:31 +0000 (18:13 -0300)
manifests/amavisd.pp
manifests/clamav.pp [new file with mode: 0644]

index d59670a000141b0ab9806c795dfb3270d885c262..85e250176d44757269fafcc65a3d3b26b6a713db 100644 (file)
@@ -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 (file)
index 0000000..b2f8ef4
--- /dev/null
@@ -0,0 +1,12 @@
+class mail::clamav {
+  group { 'clamav':
+    ensure => present,
+  }
+
+  user { 'clamav':
+    ensure  => present,
+    gid     => 'clamav',
+    groups  => [ 'amavis' ],
+    require => Group['clamav', 'amavis'],
+  }
+}