summaryrefslogtreecommitdiff
path: root/manifests/firma.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-07 16:23:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-07 16:23:48 -0300
commit653b5d37ea97f4c339cf9532bd229c07a9a38a7a (patch)
tree826a15c6d242376a16d1d13b7928c0d4cc1ea271 /manifests/firma.pp
parent682b5e84af9995961f2a81514252c1d43ace74f1 (diff)
downloadpuppet-mail-653b5d37ea97f4c339cf9532bd229c07a9a38a7a.tar.gz
puppet-mail-653b5d37ea97f4c339cf9532bd229c07a9a38a7a.tar.bz2
Initial firma support
Diffstat (limited to 'manifests/firma.pp')
-rw-r--r--manifests/firma.pp34
1 files changed, 34 insertions, 0 deletions
diff --git a/manifests/firma.pp b/manifests/firma.pp
new file mode 100644
index 0000000..8a28ffa
--- /dev/null
+++ b/manifests/firma.pp
@@ -0,0 +1,34 @@
+class mail::firma {
+ # Firma subsystems
+ include mail::packages::firma
+
+ postfix::config { "firma_destination_recipient_limit": value => '1', nonstandard => true }
+
+ postfix::transport { "${firma_subdomain}.$domain":
+ ensure => present,
+ destination => "firma",
+ }
+
+ group { "firma":
+ ensure => present,
+ allowdupe => false,
+ }
+
+ user { "firma":
+ ensure => present,
+ allowdupe => false,
+ gid => 'firma',
+ require => Group['firma'],
+ home => '/var/lib/firma',
+ }
+
+ vcsrepo { "/var/lib/firma":
+ ensure => present,
+ provider => git,
+ source => 'git://git.sarava.org/firma.git',
+ revision => '0d86856e51af59a670cdb96762d74031abb5025b',
+ owner => 'firma',
+ group => 'firma',
+ require => [ User['firma'], Group['firma'] ],
+ }
+}