Puppet Class: mysql_hardening::puppetlabs_override
- Inherits:
- ::mysql::server::config
- Defined in:
- manifests/puppetlabs_override.pp
Overview
Class: mysql_hardening::puppetlabs_override
Overlay provider for puppetlabs/mysql
Parameters
none
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/puppetlabs_override.pp', line 16
class mysql_hardening::puppetlabs_override inherits ::mysql::server::config {
# merges the final set of options
$options = mysql_deepmerge( $::mysql::server::options, $::mysql_hardening::puppetlabs::new_options )
# write the new template
if defined(File['mysql-config-file']) {
$mysql_config_filename = 'mysql-config-file'
} else {
$mysql_config_filename = $mysql::server::config_file
}
File[$mysql_config_filename]{
content => template('mysql/my.cnf.erb'),
mode => '0640',
}
}
|