Browse Source

Merge pull request #77 from bradthurber/add_apache_version

Add apache version to pillar/map.jinja
tags/v0.37.4
puneet kandhari 9 years ago
parent
commit
d01b7cc66e
3 changed files with 15 additions and 1 deletions
  1. +6
    -1
      apache/map.jinja
  2. +6
    -0
      apache/osfingermap.yaml
  3. +3
    -0
      pillar.example

+ 6
- 1
apache/map.jinja View File

{% import_yaml "apache/osfingermap.yaml" as osfingermap %}

{% set apache = salt['grains.filter_by']({ {% set apache = salt['grains.filter_by']({
'Debian': { 'Debian': {
'server': 'apache2', 'server': 'apache2',
'default_site_ssl': 'default-ssl.conf', 'default_site_ssl': 'default-ssl.conf',
'use_require': True, 'use_require': True,
}, },
}, grain='oscodename', merge=salt['pillar.get']('apache:lookup'))) %}
}, grain='oscodename', merge=salt['grains.filter_by'](
osfingermap
, grain='osfinger', merge=salt['pillar.get']('apache:lookup')))) %}


+ 6
- 0
apache/osfingermap.yaml View File

default:
version: '2.4'
Red Hat Enterprise Linux Server-6:
version: '2.2'
Red Hat Enterprise Linux Server-7:
version: '2.4'

+ 3
- 0
pillar.example View File

confext: .conf confext: .conf
logdir: /var/log/apache2 logdir: /var/log/apache2
wwwdir: /srv/apache2 wwwdir: /srv/apache2
# apache version (generally '2.2' or '2.4')
version: '2.2'


# ``apache.mod_wsgi`` formula additional configuration: # ``apache.mod_wsgi`` formula additional configuration:
mod_wsgi: mod_wsgi mod_wsgi: mod_wsgi

Loading…
Cancel
Save