Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-1573

mysql error.log ownership conflicts with Ubuntu default

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • mysql
    • Ubuntu Linux 14.04 LTS x86_64

    Description

      On the 'Debian' osfamily mysql::server uses the distribution-provided 'mysql-server' package: on Ubuntu Linux 14.04 LTS this results in installing the mysql-server-5.5 package.

      That package installs a file "/etc/logrotate.d/mysql-server" that resets the error logfile, at every rotation, to owner 'mysql', group 'adm', mode 0640.
      In mysql::server::service the same file is forced to hardcoded owner 'mysql', group 'mysql' and mode '0644'.

      This results in the file changing ownership and permissions at every rotation and then again at the following puppet agent run.

      If the mysql module uses distribution-provided packages it should also follow distribution-specific conventions like this one, or at least provide parameters to tune this kind of thing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lucalesinigo Luca Lesinigo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support