Puppet Class: phabricator::bot

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

Overview

Class: phabricator::bot

Parameters:

  • username (String)
  • token (String)
  • host (String) (defaults to: 'https://phabricator.wikimedia.org/api/')
  • owner (String) (defaults to: 'root')
  • group (String) (defaults to: 'root')
  • mode (String) (defaults to: '0440')


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/phabricator/manifests/bot.pp', line 3

class phabricator::bot (
    String $username,
    String $token,
    String $host  = 'https://phabricator.wikimedia.org/api/',
    String $owner = 'root',
    String $group = 'root',
    String $mode  = '0440',
) {

    file { "/etc/phabricator_${username}.conf":
        ensure  => file,
        content => template('phabricator/bot.conf.erb'),
        owner   => $owner,
        group   => $group,
        mode    => $mode,
    }
}