Skip to content

Commit

Permalink
Switch to using qpid bind
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Mar 24, 2017
1 parent ba8aae6 commit 030005a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@

$qpid_url = 'amqp:ssl:localhost:5671'
$candlepin_event_queue = 'katello_event_queue'
$candlepin_qpid_exchange = 'event'
$enable_ostree = false
}
8 changes: 5 additions & 3 deletions manifests/qpid.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
class katello::qpid (
$client_cert,
$client_key,
$katello_user = $::katello::user,
$candlepin_event_queue = $::katello::candlepin_event_queue,
$katello_user = $::katello::user,
$candlepin_event_queue = $::katello::candlepin_event_queue,
$candlepin_qpid_exchange = $::katello::candlepin_qpid_exchange,
){
if $katello_user == undef {
fail('katello_user not defined')
Expand All @@ -25,8 +26,9 @@
require => Service['qpidd'],
logoutput => true,
} ~>
qpid::bind_event { ['entitlement.created', 'entitlement.deleted', 'pool.created', 'pool.deleted', 'compliance.created']:
qpid::config::bind { ['entitlement.created', 'entitlement.deleted', 'pool.created', 'pool.deleted', 'compliance.created']:
ssl_cert => $client_cert,
queue => $candlepin_event_queue,
exchange => $candlepin_qpid_exchange,
}
}

0 comments on commit 030005a

Please # to comment.