Puppet Class: pulp::broker
- Defined in:
- manifests/broker.pp
Overview
Set up the broker
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'manifests/broker.pp', line 3
class pulp::broker {
if $pulp::messaging_transport == 'qpid' {
$broker_service = 'qpidd'
} elsif $pulp::messaging_transport == 'rabbitmq' {
$broker_service = 'rabbitmq-server'
}
if $pulp::manage_broker {
if $pulp::messaging_transport == 'qpid' {
include qpid
} elsif $pulp::messaging_transport == 'rabbitmq' {
include rabbitmq
}
} else {
if $pulp::messaging_transport == 'qpid' {
include qpid::tools
Class['qpid::tools'] -> Class['pulp::service']
}
}
Service <| title == $broker_service |> -> Class['pulp::service']
Service <| title == $broker_service |> -> Exec['migrate_pulp_db']
}
|