Puppet Class: katello::candlepin

Defined in:
manifests/candlepin.pp

Summary

Install and configure candlepin

Overview

Parameters:

  • db_host (Stdlib::Host) (defaults to: 'localhost')

    The database host

  • db_port (Optional[Stdlib::Port]) (defaults to: undef)

    The database port

  • db_name (String) (defaults to: 'candlepin')

    The database name

  • db_user (String) (defaults to: 'candlepin')

    The database username

  • db_password (Optional[String]) (defaults to: undef)

    The database password. A random password will be generated when unspecified.

  • db_ssl (Boolean) (defaults to: false)

    Whether to connect using SSL

  • db_ssl_verify (Boolean) (defaults to: true)

    Whether to verify the certificate of the database host

  • db_ssl_ca (Optional[Stdlib::Absolutepath]) (defaults to: undef)

    The CA certificate to verify the SSL connection to the database with

  • manage_db (Boolean) (defaults to: true)

    Whether to manage the database. Set this to false when using a remote database

  • artemis_client_dn (Variant[Undef, Deferred, String[1]]) (defaults to: undef)

    The Distinguished Name of the client certificate that’s allowed to access Artemis. It should still be signed by the correct Certificate Authority.

  • loggers (Hash[String[1], Candlepin::LogLevel]) (defaults to: {})

    Configure the Candlepin loggers



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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'manifests/candlepin.pp', line 27

class katello::candlepin (
  Stdlib::Host $db_host = 'localhost',
  Optional[Stdlib::Port] $db_port = undef,
  String $db_name = 'candlepin',
  String $db_user = 'candlepin',
  Optional[String] $db_password = undef,
  Boolean $db_ssl = false,
  Boolean $db_ssl_verify = true,
  Optional[Stdlib::Absolutepath] $db_ssl_ca = undef,
  Boolean $manage_db = true,
  Variant[Undef, Deferred, String[1]] $artemis_client_dn = undef,
  Hash[String[1], Candlepin::LogLevel] $loggers = {},
) {
  include certs
  include katello::params

  class { 'certs::candlepin':
    hostname             => $katello::params::candlepin_host,
    client_keypair_group => $katello::params::candlepin_client_keypair_group,
  }

  class { 'candlepin':
    host                         => $katello::params::candlepin_host,
    ssl_port                     => $katello::params::candlepin_port,
    user_groups                  => $certs::candlepin::group,
    oauth_key                    => $katello::params::candlepin_oauth_key,
    oauth_secret                 => $katello::params::candlepin_oauth_secret,
    ca_key                       => $certs::candlepin::ca_key,
    ca_cert                      => $certs::candlepin::ca_cert,
    keystore_file                => $certs::candlepin::keystore,
    keystore_password            => $certs::candlepin::keystore_password,
    truststore_file              => $certs::candlepin::truststore,
    truststore_password          => $certs::candlepin::truststore_password,
    artemis_client_dn            => $artemis_client_dn,
    java_home                    => '/usr/lib/jvm/jre-17',
    java_package                 => 'java-17-openjdk',
    enable_basic_auth            => false,
    consumer_system_name_pattern => '.+',
    adapter_module               => 'org.candlepin.katello.KatelloModule',
    db_host                      => $db_host,
    db_port                      => $db_port,
    db_name                      => $db_name,
    db_user                      => $db_user,
    db_password                  => $db_password,
    db_ssl                       => $db_ssl,
    db_ssl_verify                => $db_ssl_verify,
    db_ssl_ca                    => $db_ssl_ca,
    manage_db                    => $manage_db,
    loggers                      => $loggers,
    subscribe                    => Class['certs', 'certs::candlepin'],
  } ->
  anchor { 'katello::candlepin': } # lint:ignore:anchor_resource

  contain candlepin
}