Skip to content

Commit

Permalink
Refs #26571 - Add dispatch router auth
Browse files Browse the repository at this point in the history
  • Loading branch information
jturel authored and ekohl committed Apr 11, 2019
1 parent fdca362 commit d5f45bb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
13 changes: 8 additions & 5 deletions manifests/dispatch_router.pp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@

# Connect dispatch router to the local qpid
qpid::router::connector { 'broker':
host => $foreman_proxy_content::qpid_router_broker_addr,
port => $foreman_proxy_content::qpid_router_broker_port,
ssl_profile => 'client',
role => 'route-container',
idle_timeout => 0,
host => $foreman_proxy_content::qpid_router_broker_addr,
port => $foreman_proxy_content::qpid_router_broker_port,
sasl_mech => $foreman_proxy_content::qpid_router_sasl_mech,
sasl_username => $foreman_proxy_content::qpid_router_sasl_username,
sasl_password => $foreman_proxy_content::qpid_router_sasl_password,
ssl_profile => 'client',
role => 'route-container',
idle_timeout => 0,
}

qpid::router::link_route { 'broker-pulp-route-out':
Expand Down
9 changes: 9 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@
#
# $qpid_router_ssl_protocols:: Protocols to support in dispatch router (e.g. TLSv1.2, etc)
#
# $qpid_router_sasl_mech:: SASL mechanism to be used from router to broker
#
# $qpid_router_sasl_username:: SASL username to be used from router to broker
#
# $qpid_router_sasl_password:: SASL password to be used from router to broker
#
# $manage_broker:: Manage the qpid message broker when applicable
#
# $pulp_worker_timeout:: The amount of time (in seconds) before considering a worker as missing. If Pulp's
Expand Down Expand Up @@ -117,6 +123,9 @@
Stdlib::Absolutepath $qpid_router_logging_path = $foreman_proxy_content::params::qpid_router_logging_path,
Optional[String] $qpid_router_ssl_ciphers = $foreman_proxy_content::params::qpid_router_ssl_ciphers,
Optional[Array[String]] $qpid_router_ssl_protocols = $foreman_proxy_content::params::qpid_router_ssl_protocols,
Optional[String] $qpid_router_sasl_mech = $foreman_proxy_content::params::qpid_router_sasl_mech,
Optional[String] $qpid_router_sasl_username = $foreman_proxy_content::params::qpid_router_sasl_username,
Optional[String] $qpid_router_sasl_password = $foreman_proxy_content::params::qpid_router_sasl_password,
Boolean $enable_ostree = $foreman_proxy_content::params::enable_ostree,
Boolean $enable_yum = $foreman_proxy_content::params::enable_yum,
Boolean $enable_file = $foreman_proxy_content::params::enable_file,
Expand Down
3 changes: 3 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
$qpid_router_logging_path = '/var/log/qdrouterd'
$qpid_router_ssl_ciphers = undef
$qpid_router_ssl_protocols = undef
$qpid_router_sasl_mech = 'PLAIN'
$qpid_router_sasl_username = 'katello_agent'
$qpid_router_sasl_password = cache_data('foreman_cache_data', 'qpid_router_sasl_password', random_password(16))

$enable_ostree = false
$enable_yum = true
Expand Down

0 comments on commit d5f45bb

Please sign in to comment.