Puppet Class: package_builder::environments

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

Overview

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

Parameters:

  • basepath (Stdlib::Unixpath) (defaults to: '/var/cache/pbuilder')
  • extra_packages (Hash[Debian::Codename, Array[String]]) (defaults to: {})


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
40
41
42
43
44
45
# File 'modules/package_builder/manifests/environments.pp', line 4

class package_builder::environments(
    Stdlib::Unixpath                      $basepath       = '/var/cache/pbuilder',
    Hash[Debian::Codename, Array[String]] $extra_packages = {}
) {
    package_builder::pbuilder_base { 'stretch-amd64':
        distribution   => 'stretch',
        components     => 'main',
        architecture   => 'amd64',
        mirror         => 'http://mirrors.wikimedia.org/debian',
        keyring        => '/usr/share/keyrings/debian-archive-keyring.gpg',
        basepath       => $basepath,
        extra_packages => pick_default($extra_packages['stretch'], [])
    }
    package_builder::pbuilder_base { 'buster-amd64':
        distribution   => 'buster',
        components     => 'main',
        architecture   => 'amd64',
        mirror         => 'http://mirrors.wikimedia.org/debian',
        keyring        => '/usr/share/keyrings/debian-archive-keyring.gpg',
        basepath       => $basepath,
        extra_packages => pick_default($extra_packages['buster'], [])
    }
    package_builder::pbuilder_base { 'bullseye-amd64':
        distribution   => 'bullseye',
        components     => 'main',
        architecture   => 'amd64',
        mirror         => 'http://mirrors.wikimedia.org/debian',
        keyring        => '/usr/share/keyrings/debian-archive-keyring.gpg',
        basepath       => $basepath,
        extra_packages => pick_default($extra_packages['bullseye'], [])
    }
    package_builder::pbuilder_base { 'sid-amd64':
        distribution       => 'sid',
        distribution_alias => 'unstable',
        components         => 'main',
        architecture       => 'amd64',
        mirror             => 'http://mirrors.wikimedia.org/debian',
        keyring            => '/usr/share/keyrings/debian-archive-keyring.gpg',
        basepath           => $basepath,
        extra_packages     => pick_default($extra_packages['sid'], [])
    }
}