moving mysqld.log resource to installdb.pp (#833)
This commit is contained in:
parent
f8ef652e2d
commit
352d078ed5
2 changed files with 10 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue