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
62
63
|
# File 'manifests/application.pp', line 9
class katello::application (
Integer[0] $rest_client_timeout = 3600,
Integer[0] $hosts_queue_workers = 1,
) {
include foreman
include certs
include certs::apache
include certs::foreman
include katello::params
include foreman::plugin::tasks
Class['certs', 'certs::ca', 'certs::apache'] ~> Class['apache::service']
# Used in katello.yaml.erb
$candlepin_url = $katello::params::candlepin_url
$candlepin_oauth_key = $katello::params::candlepin_oauth_key
$candlepin_oauth_secret = $katello::params::candlepin_oauth_secret
$candlepin_ca_cert = $certs::ca_cert
$candlepin_events_ssl_cert = $certs::foreman::client_cert
$candlepin_events_ssl_key = $certs::foreman::client_key
$postgresql_evr_package = $katello::params::postgresql_evr_package
$manage_db = $foreman::db_manage
# Used in Candlepin
$artemis_client_dn = katello::build_dn([['CN', $certs::foreman::hostname], ['OU', $certs::foreman::org_unit], ['O', $certs::foreman::org], ['ST', $certs::foreman::state], ['C', $certs::foreman::country]])
# Katello database seeding needs candlepin
Anchor <| title == 'katello::repo' or title == 'katello::candlepin' |> ->
foreman::plugin { 'katello':
package => $foreman::plugin_prefix.regsubst(/foreman_/, 'katello'),
config => template('katello/katello.yaml.erb'),
config_file => "${foreman::plugin_config_dir}/katello.yaml",
}
if $manage_db {
package { $postgresql_evr_package:
ensure => installed,
}
}
# required by configuration in katello-apache-ssl.conf
include apache::mod::setenvif
foreman::config::apache::fragment { 'katello':
ssl_content => file('katello/katello-apache-ssl.conf'),
}
if $foreman::dynflow_manage_services {
foreman::dynflow::pool { 'worker-hosts-queue':
instances => $hosts_queue_workers,
queues => ['hosts_queue'],
}
}
}
|