Saltstack Official Apache Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.0KB

  1. #
  2. # This file is managed by Salt! Do not edit by hand!
  3. #
  4. {% from "apache/map.jinja" import apache with context -%}
  5. # envvars - default environment variables for apache2ctl
  6. # this won't be correct after changing uid
  7. unset HOME
  8. # for supporting multiple apache2 instances
  9. if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
  10. SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
  11. else
  12. SUFFIX=
  13. fi
  14. # Since there is no sane way to get the parsed apache2 config in scripts, some
  15. # settings are defined via environment variables and then used in apache2ctl,
  16. # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
  17. export APACHE_RUN_USER={{ apache.user }}
  18. export APACHE_RUN_GROUP={{ apache.group }}
  19. # temporary state file location. This might be changed to /run in Wheezy+1
  20. export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
  21. export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
  22. export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
  23. # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
  24. export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
  25. ## The locale used by some modules like mod_dav
  26. export LANG=C
  27. ## Uncomment the following line to use the system default locale instead:
  28. #. /etc/default/locale
  29. export LANG
  30. ## The command to get the status for 'apache2ctl status'.
  31. ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
  32. #export APACHE_LYNX='www-browser -dump'
  33. ## If you need a higher file descriptor limit, uncomment and adjust the
  34. ## following line (default is 8192):
  35. #APACHE_ULIMIT_MAX_FILES='ulimit -n 65536'
  36. ## If you would like to pass arguments to the web server, add them below
  37. ## to the APACHE_ARGUMENTS environment.
  38. #export APACHE_ARGUMENTS=''
  39. ## Enable the debug mode for maintainer scripts.
  40. ## This will produce a verbose output on package installations of web server modules and web application
  41. ## installations which interact with Apache
  42. #export APACHE2_MAINTSCRIPT_DEBUG=1
  43. {%- for envvar in salt['pillar.get']('apache:envvars', []) %}
  44. {{ envvar }}
  45. {%- endfor %}