moving mysqld.log resource to installdb.pp (#833)

This commit is contained in:
Nemanja Delic 2016-05-19 19:19:01 +02:00 committed by Bryan Jen
parent f8ef652e2d
commit 352d078ed5
2 changed files with 10 additions and 8 deletions

View file

@ -1,5 +1,6 @@
#
class mysql::server::installdb {
$options = $mysql::server::options
if $mysql::server::package_manage {
@ -16,6 +17,15 @@ class mysql::server::installdb {
$_config_file=undef
}
if $options['mysqld']['log-error'] {
file { $options['mysqld']['log-error']:
ensure => present,
owner => $mysqluser,
group => $::mysql::server::mysql_group,
before => Mysql_datadir[ $datadir ],
}
}
mysql_datadir { $datadir:
ensure => 'present',
datadir => $datadir,

View file

@ -18,14 +18,6 @@ class mysql::server::service {
$mysqluser = $options['mysqld']['user']
}
if $options['mysqld']['log-error'] {
file { $options['mysqld']['log-error']:
ensure => present,
owner => $mysqluser,
group => $::mysql::server::mysql_group,
}
}
if $mysql::server::real_service_manage {
service { 'mysqld':
ensure => $service_ensure,