2013-08-23 05:14:28 +02:00
|
|
|
{% set apache = salt['grains.filter_by']({
|
|
|
|
'Debian': {
|
|
|
|
'server': 'apache2',
|
|
|
|
'service': 'apache2',
|
2015-06-19 20:44:53 +02:00
|
|
|
'configfile': '/etc/apache2/apache2.conf',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
2013-08-27 04:45:38 +02:00
|
|
|
'mod_wsgi': 'libapache2-mod-wsgi',
|
2015-06-19 20:44:53 +02:00
|
|
|
'mod_php5': 'libapache2-mod-php5',
|
|
|
|
'mod_fcgid': 'libapache2-mod-fcgid',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
|
|
|
'vhostdir': '/etc/apache2/sites-available',
|
|
|
|
'confdir': '/etc/apache2/conf.d',
|
2015-04-17 14:39:57 +02:00
|
|
|
'confext': '.conf',
|
2014-10-01 10:35:53 +02:00
|
|
|
'default_site': 'default',
|
|
|
|
'default_site_ssl': 'default-ssl',
|
2013-08-28 00:27:19 +02:00
|
|
|
'logdir': '/var/log/apache2',
|
|
|
|
'wwwdir': '/srv',
|
2014-10-28 15:13:13 +01:00
|
|
|
'use_require': False,
|
2013-08-23 05:14:28 +02:00
|
|
|
},
|
|
|
|
'RedHat': {
|
|
|
|
'server': 'httpd',
|
|
|
|
'service': 'httpd',
|
2015-06-19 20:44:53 +02:00
|
|
|
'configfile': '/etc/httpd/conf/httpd.conf',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
2013-08-27 04:45:38 +02:00
|
|
|
'mod_wsgi': 'mod_wsgi',
|
2015-07-22 10:13:38 +02:00
|
|
|
'mod_php5': 'php',
|
2013-08-28 00:27:19 +02:00
|
|
|
|
2015-07-22 14:36:25 +02:00
|
|
|
'vhostdir': '/etc/httpd/vhosts.d',
|
2013-08-28 00:27:19 +02:00
|
|
|
'confdir': '/etc/httpd/conf.d',
|
2014-02-09 15:11:55 +01:00
|
|
|
'confext': '.conf',
|
2014-10-01 10:35:53 +02:00
|
|
|
'default_site': 'default',
|
|
|
|
'default_site_ssl': 'default-ssl',
|
2013-08-28 00:27:19 +02:00
|
|
|
'logdir': '/var/log/httpd',
|
|
|
|
'wwwdir': '/var/www',
|
2014-10-28 15:13:13 +01:00
|
|
|
'use_require': False,
|
2013-08-23 05:14:28 +02:00
|
|
|
},
|
2015-03-08 22:12:36 +01:00
|
|
|
'Suse': {
|
|
|
|
'server': 'apache2',
|
|
|
|
'service': 'apache2',
|
2015-06-19 20:44:53 +02:00
|
|
|
'configfile': '/etc/apache2/httpd.conf',
|
2015-03-08 22:12:36 +01:00
|
|
|
|
|
|
|
'mod_wsgi': 'apache2-mod_wsgi',
|
2015-06-19 20:44:53 +02:00
|
|
|
'mod_php5': 'apache2-mod_php5',
|
|
|
|
'mod_fcgid': 'apache2-mod_fcgid',
|
2015-03-08 22:12:36 +01:00
|
|
|
|
|
|
|
'vhostdir': '/etc/apache2/vhosts.d',
|
|
|
|
'confdir': '/etc/httpd/conf.d',
|
|
|
|
'confext': '.conf',
|
|
|
|
'default_site': 'vhost.template',
|
|
|
|
'default_site_ssl': 'vhost-ssl.template',
|
|
|
|
'logdir': '/var/log/apache2',
|
|
|
|
'wwwdir': '/srv/www',
|
|
|
|
'use_require': True,
|
|
|
|
},
|
2014-01-30 03:12:47 +01:00
|
|
|
'FreeBSD': {
|
|
|
|
'server': 'apache22',
|
|
|
|
'service': 'apache22',
|
2015-06-19 20:44:53 +02:00
|
|
|
'configfile': '/usr/local/etc/apache22/httpd.conf',
|
2014-01-30 03:12:47 +01:00
|
|
|
|
|
|
|
'mod_wsgi': 'ap22-mod_wsgi3',
|
|
|
|
|
|
|
|
'vhostdir': '/usr/local/etc/apache22/Includes',
|
|
|
|
'confdir': '/usr/local/etc/apache22/Includes',
|
2014-02-09 15:11:55 +01:00
|
|
|
'confext': '',
|
2014-10-01 10:35:53 +02:00
|
|
|
'default_site': 'default',
|
|
|
|
'default_site_ssl': 'default-ssl',
|
2014-01-30 03:12:47 +01:00
|
|
|
'logdir': '/var/log/',
|
|
|
|
'wwwdir': '/usr/local/www/apache22/',
|
2014-10-28 15:13:13 +01:00
|
|
|
'use_require': False,
|
2014-01-30 03:12:47 +01:00
|
|
|
},
|
2014-10-01 10:35:53 +02:00
|
|
|
}, merge=salt['grains.filter_by']({
|
2015-03-11 20:43:18 +01:00
|
|
|
'trusty': {
|
2014-10-01 10:35:53 +02:00
|
|
|
'confext': '.conf',
|
|
|
|
'default_site': '000-default.conf',
|
|
|
|
'default_site_ssl': 'default-ssl.conf',
|
2014-10-28 15:13:13 +01:00
|
|
|
'use_require': True,
|
|
|
|
},
|
2015-03-11 20:43:18 +01:00
|
|
|
'utopic': {
|
2014-10-28 15:13:13 +01:00
|
|
|
'confext': '.conf',
|
|
|
|
'default_site': '000-default.conf',
|
|
|
|
'default_site_ssl': 'default-ssl.conf',
|
|
|
|
'use_require': True,
|
2014-10-01 10:35:53 +02:00
|
|
|
},
|
2015-03-11 20:43:18 +01:00
|
|
|
'jessie': {
|
2015-01-10 16:18:59 +01:00
|
|
|
'wwwdir': '/var/www',
|
|
|
|
'confext': '.conf',
|
|
|
|
'default_site': '000-default.conf',
|
|
|
|
'default_site_ssl': 'default-ssl.conf',
|
2015-03-04 23:39:15 +01:00
|
|
|
'use_require': True,
|
2015-01-10 16:18:59 +01:00
|
|
|
},
|
2015-06-23 19:30:16 +02:00
|
|
|
}, grain='oscodename', merge=salt['pillar.get']('apache:lookup'))) %}
|