Skip to content

Commit

Permalink
Merge pull request #60 from criteo-cookbooks/syslog_variable
Browse files Browse the repository at this point in the history
Add a variable to enable syslog support
  • Loading branch information
inetAnt authored Jul 17, 2018
2 parents 00dcfb1 + 17aaeb0 commit 44a3900
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,6 @@
default['librenms']['auth_radius']['timeout'] = 3
default['librenms']['auth_radius']['users_purge'] = 14
default['librenms']['auth_radius']['default_level'] = 1

# Syslog
default['librenms']['syslog']['enabled'] = false
1 change: 1 addition & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@
user: librenms_username,
path: librenms_homedir,
rrdc_enabled: node['librenms']['rrdcached']['enabled'],
syslog_enabled: node['librenms']['syslog']['enabled'],
auto_up: node['librenms']['auto_update_enabled'],
xdp: node['librenms']['autodiscover']['xdp'],
ospf: node['librenms']['autodiscover']['ospf'],
Expand Down
4 changes: 4 additions & 0 deletions templates/default/config.php.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ $config['rrd_dir'] = "<%= @rrddir %>";
$config['rrdcached'] = "unix:/var/run/rrdcached/rrdcached.sock";
<% end %>

<% if @syslog_enabled %>
$config['enable_syslog'] = 1;
<% end %>

$config['snmp']['community'] = array("public");

$config['update'] = <%= @auto_up %>;
Expand Down

0 comments on commit 44a3900

Please sign in to comment.