Puppet Class: package_builder::hooks

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

Overview

Class package_builder::hooks A wrapper class for package::pbuilder_hooks. Mostly exists to make the addition of new distributions as easy as possible

Parameters:

  • basepath (Stdlib::Unixpath) (defaults to: '/var/cache/pbuilder')


4
5
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
38
39
# File 'modules/package_builder/manifests/hooks.pp', line 4

class package_builder::hooks(
    Stdlib::Unixpath $basepath='/var/cache/pbuilder',
) {
    file { "${basepath}/hooks":
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

    package_builder::pbuilder_hook { 'jessie':
        distribution => 'jessie',
        components   => 'main backports thirdparty',
        basepath     => $basepath,
    }

    package_builder::pbuilder_hook { 'stretch':
        distribution => 'stretch',
        components   => 'main',
        basepath     => $basepath,
    }

    package_builder::pbuilder_hook { 'buster':
        distribution => 'buster',
        components   => 'main',
        basepath     => $basepath,
    }

    package_builder::pbuilder_hook { 'bullseye':
        distribution => 'bullseye',
        components   => 'main',
        basepath     => $basepath,
    }

    File["${basepath}/hooks"] -> Package_builder::Pbuilder_hook <| |>
}