Saltstack Official Apache Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

46 lines
1.5KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand!
  3. #
  4. # envvars - default environment variables for apache2ctl
  5. # this won't be correct after changing uid
  6. unset HOME
  7. # for supporting multiple apache2 instances
  8. if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
  9. SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
  10. else
  11. SUFFIX=
  12. fi
  13. # Since there is no sane way to get the parsed apache2 config in scripts, some
  14. # settings are defined via environment variables and then used in apache2ctl,
  15. # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
  16. export APACHE_RUN_USER={{ apache.user }}
  17. export APACHE_RUN_GROUP={{ apache.group }}
  18. export APACHE_PID_FILE=/var/run/apache2$SUFFIX.pid
  19. export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
  20. export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
  21. # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
  22. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
  23. ## The locale used by some modules like mod_dav
  24. export LANG=C
  25. ## Uncomment the following line to use the system default locale instead:
  26. #. /etc/default/locale
  27. export LANG
  28. ## The command to get the status for 'apache2ctl status'.
  29. ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
  30. #export APACHE_LYNX='www-browser -dump'
  31. ## If you need a higher file descriptor limit, uncomment and adjust the
  32. ## following line (default is 8192):
  33. #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
  34. {%- for envvar in salt['pillar.get']('apache:envvars', []) %}
  35. {{ envvar }}
  36. {%- endfor %}