Puppet Class: openstack::clientpackages::vms::bobcat::bookworm

Defined in:
modules/openstack/manifests/clientpackages/vms/bobcat/bookworm.pp

Overview

this is the class for use by VM instances in Cloud VPS. Don't use for HW servers



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
# File 'modules/openstack/manifests/clientpackages/vms/bobcat/bookworm.pp', line 4

class openstack::clientpackages::vms::bobcat::bookworm(
) {
    requires_realm('labs')

    apt::repository { 'openstack-bobcat-bookworm':
        uri        => 'http://mirrors.wikimedia.org/osbpo',
        dist       => 'bookworm-bobcat-backports',
        components => 'main',
        source     => false,
        keyfile    => 'puppet:///modules/openstack/serverpackages/osbpo-pubkey.asc',
        notify     => Exec['openstack-bobcat-bookworm-apt-upgrade'],
    }

    apt::repository { 'openstack-bobcat-bookworm-nochange':
        uri        => 'http://mirrors.wikimedia.org/osbpo',
        dist       => 'bookworm-bobcat-backports-nochange',
        components => 'main',
        source     => false,
        keyfile    => 'puppet:///modules/openstack/serverpackages/osbpo-pubkey.asc',
        notify     => Exec['openstack-bobcat-bookworm-apt-upgrade'],
    }

    # ensure apt can see the repo before any further Package[] declaration
    # so this proper repo/pinning configuration applies in the same puppet
    # agent run
    exec { 'openstack-bobcat-bookworm-apt-upgrade':
        command     => '/usr/bin/apt-get update',
        require     => [Apt::Repository['openstack-bobcat-bookworm'],
                        Apt::Repository['openstack-bobcat-bookworm-nochange']],
        subscribe   => [Apt::Repository['openstack-bobcat-bookworm'],
                        Apt::Repository['openstack-bobcat-bookworm-nochange']],
        refreshonly => true,
        logoutput   => true,
    }
    Exec['openstack-bobcat-bookworm-apt-upgrade'] -> Package <| title != 'gnupg' |>

}