|
-
- apache:
- server: apache2
- service: apache2
-
- vhostdir: /etc/apache2/sites-available
- confdir: /etc/apache2/conf.d
- confext: .conf
- logdir: /var/log/apache2
- wwwdir: /srv/apache2
-
-
- apache:
- mod_wsgi: mod_wsgi
-
-
- apache:
- sites:
-
- example.com:
- template_file: salt://apache/vhosts/standard.tmpl
- template_engine: jinja
-
- interface: '*'
- port: '80'
-
- ServerName: {{ id }}
- ServerAlias: www.{{ id }}
-
- ServerAdmin: webmaster@{{ id }}
-
- LogLevel: warn
- ErrorLog: {{ logdir }}/{{ id }}-error.log
- CustomLog: {{ logdir }}/{{ id }}-access.log
-
- DocumentRoot: {{ wwwdir }}/{{ id }}
-
- Directory:
- default:
- Options: -Indexes FollowSymLinks
- Order: allow,deny
- Allow: from all
- AllowOverride: None
- Formula_Append: |
- Additional config as a
- multi-line string here
-
- Formula_Append: |
- Additional config as a
- multi-line string here
-
- example.net:
- template_file: salt://apache/vhosts/minimal.tmpl
-
-
- apache:
- register-site:
-
- {{UNQIUE}}:
- name: 'my name'
- path: 'salt://path/to/sites-available/conf/file'
- state: 'enabled'
|