Ask Your Question

overriding max_connections in puppetlabs-mysql module from hiera

asked 2015-11-14 10:23:06 -0600

SimonH gravatar image

Is there anyway to override the default max_connections value of 151 from hiera with the puppetlabs-mysql forge module?

I've tried

mysql::server::max_connections:      300


    max_connections:                 300

but these don't make any difference to the configuration.

edit retag flag offensive close merge delete


whats is the output of hiera mysql::server::override_options::mysqld? also what does hiera.yaml look like? is /etc/hiera.yaml a link to /etc/puppet/hiera.yaml cheers Stuart

sahumphries gravatar imagesahumphries ( 2015-11-15 05:16:02 -0600 )edit

Stuart, running the hiera command you gave on both the puppet master and agent returned nil - but it also returned nil for other values that are making it through and being configured. /etc/puppet/hiera.yaml is a link to /etc/hiera.yaml

SimonH gravatar imageSimonH ( 2015-11-15 14:27:35 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-16 08:11:19 -0600

updated 2015-11-22 15:40:27 -0600

ramindk gravatar image

ok - so i installed the puppetlabs mysql module - added the following to hiera and it works ok:

  'max_connections': '300'

doing a command line hiera lookup:

[root@puppetmaster data]# hiera mysql::server::override_options

i added a simple entry to my site.pp and runs ok ..

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-11-14 10:23:06 -0600

Seen: 433 times

Last updated: Nov 22 '15