apache-formula icon indicating copy to clipboard operation
apache-formula copied to clipboard

[FEATURE] handle multiple CustomLog directives

Open boileaum opened this issue 1 year ago • 0 comments

Is your feature request related to a problem?

Handle multiple CustomLog directives in the same config file (see https://httpd.apache.org/docs/2.4/fr/mod/mod_log_config.html#customlog).

Describe the solution you'd like

The following apache config example:

CustomLog /var/log/apache2/access.log combined
CustomLog "|/usr/bin/logger -t apache -p local6.info" combined

could be translated into the pillar file as:

apache:
  sites:
    default:
      CustomLog:
         - /var/log/apache2/access.log combined
         - "|/usr/bin/logger -t apache -p local6.info" combined

Describe alternatives you've considered

A personal hack independent of this formula.

boileaum avatar Mar 01 '23 09:03 boileaum