Puppet Class: base::phaste

Defined in:
modules/base/manifests/phaste.pp

Overview

Class: base::phaste

Provisions 'phaste', a simple command-line tool for pastebinning text onto Phabricator.

Parameters:

  • ensure (Any) (defaults to: present)


6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'modules/base/manifests/phaste.pp', line 6

class base::phaste( $ensure = present ) {
    include ::passwords::phabricator

    $conf = {
        user => 'ProdPasteBot',
        cert => $passwords::phabricator::pastebot_cert,
        phab => 'https://phabricator.wikimedia.org',
    }

    file { '/etc/phaste.conf':
        ensure  => $ensure,
        content => ordered_json($conf),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
    }

    file { '/usr/local/bin/phaste':
        ensure  => $ensure,
        source  => 'puppet:///modules/base/phaste.py',
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        require => File['/etc/phaste.conf'],
    }
}