Conditionally set mysql max connections

Only install the max_connections config file for the mysql server
if we are installing the mysql server.

Change-Id: I0c9beb54d3e6982fc4c1b4de8ce1f81eb40c654d
This commit is contained in:
James E. Blair 2016-11-23 12:50:38 -08:00
parent 799dbee521
commit 3a2e9c0d34
2 changed files with 9 additions and 8 deletions

View File

@ -80,14 +80,6 @@ class nodepool (
}
}
file { '/etc/mysql/conf.d/max_connections.cnf':
ensure => present,
content => "[server]\nmax_connections = 8192\n",
mode => '0444',
owner => 'root',
group => 'root',
}
user { 'nodepool':
ensure => present,
home => '/home/nodepool',

View File

@ -47,4 +47,13 @@ class nodepool::mysql (
],
}
file { '/etc/mysql/conf.d/max_connections.cnf':
ensure => present,
content => "[server]\nmax_connections = 8192\n",
mode => '0444',
owner => 'root',
group => 'root',
require => Class['mysql::server'],
}
}