Puppet Class: profile::package_builder

Defined in:
modules/profile/manifests/package_builder.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class: profile::package::builder

Profile for package_builder



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
32
33
34
35
36
37
# File 'modules/profile/manifests/package_builder.pp', line 6

class profile::package_builder {
    class { 'package_builder': }

    class { 'rsync::server': }
    # Set up an rsync module to allow easy copying of pbuilder
    # results to carbon or elsewhere.  You can rsync from this like:
    #   rsync <host>::pbuilder-result/buster-amd64/mypackage* ./mypackage/
    rsync::server::module { 'pbuilder-result':
        path        => '/var/cache/pbuilder/result',
    }

    profile::auto_restarts::service { 'rsync': }

    firewall::service { 'package_builder_rsync':
        proto    => 'tcp',
        port     => 873,
        src_sets => ['DOMAIN_NETWORKS'],
    }

    monitoring::service { 'package_builder_rsync':
        description   => 'package builder rsync',
        check_command => 'check_tcp!873',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Debian_Packaging#Upload_to_Wikimedia_Repo',
    }

    prometheus::blackbox::check::tcp { 'package-builder-rsync':
        port          => 873,
        ip_families   => ['ip4',],
        probe_runbook => 'https://wikitech.wikimedia.org/wiki/Debian_Packaging#Upload_to_Wikimedia_Repo',
    }

}