Puppet Class: phabricator::mailrelay

Defined in:
modules/phabricator/manifests/mailrelay.pp

Overview

Class: phabricator::mailrelay

Sets up special routing for exim handler

Parameters

default

Key/Value defaults for the email bot to function

phab_bot

Key/Value parameters for the email bot to function

address_routing

Key/value email address to project name / security setting

direct_comments_allowed

Key/value project name to comma separated domain list

Examples

class { '::phabricator::mailrelay':
    address_routing         => { maint-announce => ops-maint-announce},
    direct_comments_allowed => { testproj => 'cisco.com,gmail.com'},
    phab_bot => { root_dir   => '/srv/phab/phabricator/',
                  username    => 'phabot',
                  host        => 'http://myhost/api/',
                  certificate => $certificate,
    },
}

See modules/phabricator/files/phab_epipe.py for more usage info

Parameters:

  • default (Hash) (defaults to: {})
  • phab_bot (Hash) (defaults to: {})
  • address_routing (Hash) (defaults to: {})
  • direct_comments_allowed (Hash) (defaults to: {})


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'modules/phabricator/manifests/mailrelay.pp', line 33

class phabricator::mailrelay(
    Hash $default                 = {},
    Hash $phab_bot                = {},
    Hash $address_routing         = {},
    Hash $direct_comments_allowed = {},
) {

    file { '/usr/local/bin/phab_epipe.py':
        ensure => file,
        source => 'puppet:///modules/phabricator/phab_epipe.py',
        mode   => '0555',
        owner  => 'mail',
        group  => 'mail',
    }

    file { '/etc/phab_epipe.conf':
        ensure  => file,
        content => template('phabricator/phab_epipe.conf.erb'),
        owner   => 'mail',
    }
}