2013-08-23 05:14:28 +02:00
|
|
|
{% set apache = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'server': 'apache2',
|
|
|
|
'service': 'apache2',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
2013-08-27 04:45:38 +02:00
|
|
|
'mod_wsgi': 'libapache2-mod-wsgi',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
|
|
|
'vhostdir': '/etc/apache2/sites-available',
|
|
|
|
'confdir': '/etc/apache2/conf.d',
|
|
|
|
'logdir': '/var/log/apache2',
|
|
|
|
'wwwdir': '/srv',
|
2013-08-23 05:14:28 +02:00
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'server': 'httpd',
|
|
|
|
'service': 'httpd',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
2013-08-27 04:45:38 +02:00
|
|
|
'mod_wsgi': 'mod_wsgi',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
|
|
|
'vhostdir': '/etc/httpd/conf.d',
|
|
|
|
'confdir': '/etc/httpd/conf.d',
|
|
|
|
'logdir': '/var/log/httpd',
|
|
|
|
'wwwdir': '/var/www',
|
2013-08-23 05:14:28 +02:00
|
|
|
},
|
|
|
|
}, merge=salt['pillar.get']('apache:lookup')) %}
|