Puppet Class: openstack::clientpackages::vms::bobcat::bullseye

Defined in:
modules/openstack/manifests/clientpackages/vms/bobcat/bullseye.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'modules/openstack/manifests/clientpackages/vms/bobcat/bullseye.pp', line 4

class openstack::clientpackages::vms::bobcat::bullseye(
) {
    requires_realm('labs')
    # The most recent Openstack version available for Bullseye is 'zed'

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

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

    apt::repository { 'openstack-yoga-bullseye':
        ensure => absent
    }
    apt::repository { 'openstack-yoga-bullseye-nochange':
        ensure => absent
    }
    apt::repository { 'openstack-wallaby-bullseye':
        ensure => absent
    }
    apt::repository { 'openstack-wallaby-bullseye-nochange':
        ensure => absent
    }
    apt::repository { 'openstack-victoria-bullseye':
        ensure => absent
    }
    apt::repository { 'openstack-victoria-bullseye-nochange':
        ensure => absent
    }
}