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.

39 lines
1023B

  1. {% set apache = salt['grains.filter_by']({
  2. 'Debian': {
  3. 'server': 'apache2',
  4. 'service': 'apache2',
  5. 'mod_wsgi': 'libapache2-mod-wsgi',
  6. 'vhostdir': '/etc/apache2/sites-available',
  7. 'confdir': '/etc/apache2/conf.d',
  8. 'confext': '',
  9. 'logdir': '/var/log/apache2',
  10. 'wwwdir': '/srv',
  11. },
  12. 'RedHat': {
  13. 'server': 'httpd',
  14. 'service': 'httpd',
  15. 'mod_wsgi': 'mod_wsgi',
  16. 'vhostdir': '/etc/httpd/conf.d',
  17. 'confdir': '/etc/httpd/conf.d',
  18. 'confext': '.conf',
  19. 'logdir': '/var/log/httpd',
  20. 'wwwdir': '/var/www',
  21. },
  22. 'FreeBSD': {
  23. 'server': 'apache22',
  24. 'service': 'apache22',
  25. 'mod_wsgi': 'ap22-mod_wsgi3',
  26. 'vhostdir': '/usr/local/etc/apache22/Includes',
  27. 'confdir': '/usr/local/etc/apache22/Includes',
  28. 'confext': '',
  29. 'logdir': '/var/log/',
  30. 'wwwdir': '/usr/local/www/apache22/',
  31. },
  32. }, merge=salt['pillar.get']('apache:lookup')) %}