Project

General

Profile

Download (830 Bytes) Statistics
| Branch: | Tag: | Revision:
# Set up the broker
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 |> -> Service['pulp_celerybeat']
Service <| title == $broker_service |> -> Service['pulp_workers']
Service <| title == $broker_service |> -> Service['pulp_resource_manager']
Service <| title == $broker_service |> -> Exec['migrate_pulp_db']
}
(4-4/13)