aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/subsystems/database.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/subsystems/database.pp b/manifests/subsystems/database.pp
index 7b5398f..f5ae446 100644
--- a/manifests/subsystems/database.pp
+++ b/manifests/subsystems/database.pp
@@ -10,6 +10,16 @@ class database {
content => "mysql soft nofile 24000\nmysql hard nofile 32000\n",
}
+ # Avoid Errcode: 24
+ file { '/etc/mysql/conf.d/mysqld_open_files_limit.cnf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ content => "[mysqld]\nopen-files-limit = 5000\n",
+ notify => Service['mysql'],
+ }
+
# Database definitions
define instance($password, $ensure = 'present', $privileges = 'all') {
mysql_database { "$name":