Skip to content

Commit

Permalink
Merge pull request #71 from criteo-cookbooks/0.2.26
Browse files Browse the repository at this point in the history
Release 0.2.26
  • Loading branch information
nicolasgrieco authored Feb 17, 2020
2 parents 2d6a976 + 65cbd21 commit 2e9b2df
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
default['mariadb']['user_librenms']['password'] = 'default'
default['mariadb']['bind_address'] = '127.0.0.1'
default['mariadb']['max_connections'] = 302
default['mariadb']['max_connect_errors'] = 1000
default['mariadb']['wait_timeout'] = 60

default['librenms']['root_dir'] = '/var/opt'
default['librenms']['path'] = ::File.join(node['librenms']['root_dir'], 'librenms')
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
long_description 'This cookbook installs and configure LibreNMS along with the required components (Apache and MySQL). LibreNMS is an autodiscovering PHP/MySQL-based network monitoring system.'
issues_url 'https://github.com/criteo-cookbooks/librenms/issues'
source_url 'https://github.com/criteo-cookbooks/librenms'
version '0.2.25'
version '0.2.26'
supports 'centos7'
supports 'centos'
depends 'apache2'
Expand Down
6 changes: 4 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@
group 'root'
mode '0644'
variables(
bind_address: node['mariadb']['bind_address'],
max_connections: node['mariadb']['max_connections'],
bind_address: node['mariadb']['bind_address'],
max_connections: node['mariadb']['max_connections'],
max_connect_errors: node['mariadb']['max_connect_errors'],
wait_timeout: node['mariadb']['wait_timeout'],
)
notifies :restart, 'service[mysql]'
end
Expand Down
2 changes: 2 additions & 0 deletions templates/default/librenms-mysqld.cnf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ lower_case_table_names=0
bind-address = <%= @bind_address %>
innodb_flush_log_at_trx_commit = 0
max_connections=<%= @max_connections %>
max_connect_errors=<%= @max_connect_errors %>
wait_timeout=<%= @wait_timeout %>

0 comments on commit 2e9b2df

Please sign in to comment.