Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bind_address and bind_port #37

Merged
merged 1 commit into from Oct 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions manifests/node.pp
Expand Up @@ -44,6 +44,10 @@
#
# address: The address used in the munin master node definition.
#
# bind_address: The IP address the munin-node process listens on. Defaults: *.
#
# bind_port: The port number the munin-node process listens on.
#
# package_name: The name of the munin node package to install.
#
# service_name: The name of the munin node service.
Expand All @@ -64,6 +68,8 @@
class munin::node (
$address = $munin::params::node::address,
$allow = $munin::params::node::allow,
$bind_address = $munin::params::node::bind_address,
$bind_port = $munin::params::node::bind_port,
$config_root = $munin::params::node::config_root,
$host_name = $munin::params::node::host_name,
$log_dir = $munin::params::node::log_dir,
Expand Down
2 changes: 2 additions & 0 deletions manifests/params/node.pp
Expand Up @@ -4,6 +4,8 @@

$address = $::fqdn
$host_name = $::fqdn
$bind_address = '*'
$bind_port = 4949
$allow = []
$masterconfig = []
$mastergroup = undef
Expand Down
6 changes: 4 additions & 2 deletions templates/munin-node.conf.erb
Expand Up @@ -30,12 +30,14 @@ log_file <%= @_log_file %>
syslog_facility <%= @syslog_facility %>
<% end -%>
<% end -%>
port 4949
pid_file /var/run/munin/munin-node.pid
background 1
setsid 1

# Which port to bind to;
# Which port and address to bind to;
host <%= @bind_address %>
port <%= @bind_port %>


user root
group <%= @file_group %>
Expand Down