saltstack-formulas / apache-formula

Set up and configure the Apache HTTP server
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
50 stars 285 forks source link

[FEATURE] handle multiple CustomLog directives #386

Open boileaum opened 1 year ago

boileaum commented 1 year ago

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.