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:
parent
799dbee521
commit
3a2e9c0d34
@ -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',
|
||||
|
@ -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'],
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user