Puppet Class: openstack::keystone::service::caracal::bookworm

Defined in:
modules/openstack/manifests/keystone/service/caracal/bookworm.pp

Overview

Parameters:

  • public_bind_port (Stdlib::Port)
  • admin_bind_port (Stdlib::Port)


3
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
# File 'modules/openstack/manifests/keystone/service/caracal/bookworm.pp', line 3

class openstack::keystone::service::caracal::bookworm(
    Stdlib::Port $public_bind_port,
    Stdlib::Port $admin_bind_port,
) {
    require ::openstack::serverpackages::caracal::bookworm

    $packages = [
        'keystone',
        'alembic',
        'ldapvi',
        'python3-ldappool',
        'python3-ldap3',
        'ruby-ldap',
        'python3-mwclient',
    ]

    ensure_packages($packages)

    # Temporary (?) time-out for apache + mod_wsgi which don't work with Keystone
    # on bookworm
    file { '/etc/init.d/keystone':
        mode    => '0755',
        content => template('openstack/caracal/keystone/keystone-public-service.erb'),
        require => Package['keystone'];
    }
    file { '/etc/init.d/keystone-admin':
        mode    => '0755',
        content => template('openstack/caracal/keystone/keystone-admin-service.erb'),
        require => Package['keystone'];
    }
    service {'keystone':
        ensure  => 'running',
        require => File['/etc/init.d/keystone'],
        notify  => Service['keystone-admin'],
    }
    service {'keystone-admin':
        ensure  => 'running',
        require => File['/etc/init.d/keystone-admin'];
    }
}