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 => '8b4c297cd6dd57393dc066e80087bb1c75bd7963', owner => 'firma', group => 'firma', require => [ User['firma'], Group['firma'] ], } file { '/usr/local/bin/firma': ensure => '/var/lib/firma/firma', owner => firma, group => firma, require => Vcsrepo['/var/lib/firma'], } exec { 'cp /var/lib/firma.conf.dist /var/lib/firma.conf': creates => '/var/lib/firma/firma.conf', user => 'root', group => 'root', require => Vcsrepo['/var/lib/firma'], } }