Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage /var/log/mysql on Debian #1566

Open
jcharaoui opened this issue May 12, 2023 · 1 comment
Open

Manage /var/log/mysql on Debian #1566

jcharaoui opened this issue May 12, 2023 · 1 comment

Comments

@jcharaoui
Copy link

Use Case

On Debian 12 (bookworm), the /var/log/mysql is not created by the package anymore.

Since this module sets log-error by default to /var/log/mysql/error.log, the absence of the parent directory is causing a failure.

Describe the Solution You Would Like

Please adjust the module to manage the /var/log/mysql directory when log-error is being used. This solution should be compatible with all supported versions of Debian.

Describe Alternatives You've Considered

A workaround is to override log-error to undef.

@CamZie
Copy link

CamZie commented Oct 2, 2023

Same issue here.

As a workaround I added the following inside if $options['mysqld']['log-error'] { } / line 24 in the file manifests/server/installdb.pp to ensure that the directory exists:

    file { '/var/log/mysql':
       ensure => 'directory',
       mode   => '0755',
     }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants