Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# been deployed
#
# Parameters:
# $max_buffer_size: Global line limit for playback buffer size per channel.
# $auth_type: (plain|sasl). Will determine to use local auth or SASL auth.
# $ssl: (true|false). To enable or disable SSL support. Will autogen a SSL certificate.
# $port: port to run ZNC on.
Expand All @@ -29,6 +30,7 @@
# Sample Usage:
# This module should not be called directly.
class znc::config (
$max_buffer_size,
$auth_type = undef,
$ssl = undef,
$ssl_source = undef,
Expand Down
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
$ipv6 = $::znc::params::zc_ipv6,
$port = $::znc::params::zc_port,
$systemd = $::znc::params::systemd,
$max_buffer_size = $::znc::params::max_buffer_size,

$znc_admin_user = undef,
$znc_admin_pass = undef,
Expand Down Expand Up @@ -88,6 +89,7 @@
ipv6 => $ipv6,
port => $port,
systemd => $systemd,
max_buffer_size => $max_buffer_size,
}
# we need to define at least one user in order to start service
-> ::znc::user { $znc_admin_user :
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
}
}

$max_buffer_size = 500

# server definition
$zc_user = 'znc'
$zc_group = 'znc'
Expand Down
2 changes: 1 addition & 1 deletion templates/configs/znc.conf.header.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ LoadModule = <%= global_module %>
<% if @auth_type == 'sasl' -%>
LoadModule = saslauth saslauthd
<% end -%>
MaxBufferSize = 500
MaxBufferSize = <%= @max_buffer_size %>
<% if @motd -%>
Motd = <%= @motd %>
<% end -%>
Expand Down