Puppet Class: katello

Defined in:
manifests/init.pp

Overview

Class: katello

Install and configure katello

Parameters:

Advanced parameters:

$candlepin_oauth_key

The OAuth key for talking to the candlepin API

$candlepin_oauth_secret

The OAuth secret for talking to the candlepin API

$candlepin_db_host

Host with Candlepin DB

$candlepin_db_port

Port accepting connections to Candlepin DB

$candlepin_db_name

Name of the Candlepin DB

$candlepin_db_user

Candlepin DB user

$candlepin_db_password

Candlepin DB password

$candlepin_db_ssl

Boolean indicating if the connection to the database should be over an SSL connection. Requires DB host’s CA Cert in the system trust

$candlepin_db_ssl_verify

Boolean indicating if the SSL connection to the database should be verified

$candlepin_db_ssl_ca

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

$candlepin_manage_db

Boolean indicating whether a database should be installed, this includes db creation and user

$candlepin_loggers

Configure the Candlepin loggers

$rest_client_timeout

Timeout for Katello rest API

$hosts_queue_workers

Configures the number of workers handling the hosts_queue queue.

Parameters:

  • candlepin_oauth_key (Optional[String]) (defaults to: undef)
  • candlepin_oauth_secret (Optional[String]) (defaults to: undef)
  • rest_client_timeout (Integer[0]) (defaults to: 3600)
  • candlepin_db_host (String) (defaults to: 'localhost')
  • candlepin_db_port (Optional[Stdlib::Port]) (defaults to: undef)
  • candlepin_db_name (String) (defaults to: 'candlepin')
  • candlepin_db_user (String) (defaults to: 'candlepin')
  • candlepin_db_password (Optional[String]) (defaults to: undef)
  • candlepin_db_ssl (Boolean) (defaults to: false)
  • candlepin_db_ssl_verify (Boolean) (defaults to: true)
  • candlepin_db_ssl_ca (Optional[Stdlib::Absolutepath]) (defaults to: undef)
  • candlepin_manage_db (Boolean) (defaults to: true)
  • candlepin_loggers (Hash[String[1], Candlepin::LogLevel]) (defaults to: {})
  • hosts_queue_workers (Integer[0]) (defaults to: 1)


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
82
83
84
85
86
# File 'manifests/init.pp', line 38

class katello (
  Optional[String] $candlepin_oauth_key = undef,
  Optional[String] $candlepin_oauth_secret = undef,

  Integer[0] $rest_client_timeout = 3600,

  String $candlepin_db_host = 'localhost',
  Optional[Stdlib::Port] $candlepin_db_port = undef,
  String $candlepin_db_name = 'candlepin',
  String $candlepin_db_user = 'candlepin',
  Optional[String] $candlepin_db_password = undef,
  Boolean $candlepin_db_ssl = false,
  Boolean $candlepin_db_ssl_verify = true,
  Optional[Stdlib::Absolutepath] $candlepin_db_ssl_ca = undef,
  Boolean $candlepin_manage_db = true,
  Hash[String[1], Candlepin::LogLevel] $candlepin_loggers = {},

  Integer[0] $hosts_queue_workers = 1,
) {
  class { 'katello::params':
    candlepin_oauth_key    => $candlepin_oauth_key,
    candlepin_oauth_secret => $candlepin_oauth_secret,
  }

  if $katello::params::meta_package != '' {
    package { $katello::params::meta_package:
      ensure => installed,
    }
  }

  class { 'katello::application':
    rest_client_timeout => $rest_client_timeout,
    hosts_queue_workers => $hosts_queue_workers,
  }

  class { 'katello::candlepin':
    db_host           => $candlepin_db_host,
    db_port           => $candlepin_db_port,
    db_name           => $candlepin_db_name,
    db_user           => $candlepin_db_user,
    db_password       => $candlepin_db_password,
    db_ssl            => $candlepin_db_ssl,
    db_ssl_verify     => $candlepin_db_ssl_verify,
    db_ssl_ca         => $candlepin_db_ssl_ca,
    manage_db         => $candlepin_manage_db,
    artemis_client_dn => $katello::application::artemis_client_dn,
    loggers           => $candlepin_loggers,
  }
}