
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: If6eb852b44673ea6b6a629aa1381b78bb6ae5646
42 lines
1.3 KiB
Puppet
42 lines
1.3 KiB
Puppet
# == class: zaqar::transport::websocket
|
|
#
|
|
# [*bind*]
|
|
# Address on which the self-hosting server will listen.
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*port*]
|
|
# Port on which the self-hosting server will listen.
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*external_port*]
|
|
# Port on which the service is provided to the user.
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*notification_bind*]
|
|
# Address on which the notification server will listen.
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
# [*notification_port*]
|
|
# Port on which the notification server will listen.
|
|
# Defaults to $facts['os_service_default'].
|
|
#
|
|
class zaqar::transport::websocket(
|
|
$bind = $facts['os_service_default'],
|
|
$port = $facts['os_service_default'],
|
|
$external_port = $facts['os_service_default'],
|
|
$notification_bind = $facts['os_service_default'],
|
|
$notification_port = $facts['os_service_default'],
|
|
) {
|
|
|
|
include zaqar::deps
|
|
|
|
zaqar_config {
|
|
'drivers:transport:websocket/bind': value => $bind;
|
|
'drivers:transport:websocket/port': value => $port;
|
|
'drivers:transport:websocket/external_port': value => $external_port;
|
|
'drivers:transport:websocket/notification_bind': value => $notification_bind;
|
|
'drivers:transport:websocket/notification_port': value => $notification_port;
|
|
}
|
|
|
|
}
|