39 lines
1023 B
Plaintext
Raw Normal View History

2013-08-22 21:14:28 -06:00
{% set apache = salt['grains.filter_by']({
'Debian': {
'server': 'apache2',
'service': 'apache2',
2013-08-26 20:45:38 -06:00
'mod_wsgi': 'libapache2-mod-wsgi',
'vhostdir': '/etc/apache2/sites-available',
'confdir': '/etc/apache2/conf.d',
'confext': '',
'logdir': '/var/log/apache2',
'wwwdir': '/srv',
2013-08-22 21:14:28 -06:00
},
'RedHat': {
'server': 'httpd',
'service': 'httpd',
2013-08-26 20:45:38 -06:00
'mod_wsgi': 'mod_wsgi',
'vhostdir': '/etc/httpd/conf.d',
'confdir': '/etc/httpd/conf.d',
'confext': '.conf',
'logdir': '/var/log/httpd',
'wwwdir': '/var/www',
2013-08-22 21:14:28 -06:00
},
2014-01-29 19:12:47 -07:00
'FreeBSD': {
'server': 'apache22',
'service': 'apache22',
'mod_wsgi': 'ap22-mod_wsgi3',
'vhostdir': '/usr/local/etc/apache22/Includes',
'confdir': '/usr/local/etc/apache22/Includes',
'confext': '',
2014-01-29 19:12:47 -07:00
'logdir': '/var/log/',
'wwwdir': '/usr/local/www/apache22/',
},
2013-08-22 21:14:28 -06:00
}, merge=salt['pillar.get']('apache:lookup')) %}