Puppet Class: openstack::clientpackages::vms::caracal::bookworm

Defined in:
modules/openstack/manifests/clientpackages/vms/caracal/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/caracal/bookworm.pp', line 4

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

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

    apt::repository { 'openstack-caracal-bookworm-nochange':
        uri        => 'http://mirrors.wikimedia.org/osbpo',
        dist       => 'bookworm-caracal-backports-nochange',
        components => 'main',
        source     => false,
        keyfile    => 'puppet:///modules/openstack/serverpackages/osbpo-pubkey.asc',
        notify     => Exec['openstack-caracal-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-caracal-bookworm-apt-upgrade':
        command     => '/usr/bin/apt-get update',
        require     => [Apt::Repository['openstack-caracal-bookworm'],
                        Apt::Repository['openstack-caracal-bookworm-nochange']],
        subscribe   => [Apt::Repository['openstack-caracal-bookworm'],
                        Apt::Repository['openstack-caracal-bookworm-nochange']],
        refreshonly => true,
        logoutput   => true,
    }
    Exec['openstack-caracal-bookworm-apt-upgrade'] -> Package <| title != 'gnupg' |>

}