2013-07-30 18:42:02 +02:00
|
|
|
include:
|
|
|
|
- apt
|
2013-08-13 22:29:58 +02:00
|
|
|
- apache
|
2013-07-30 18:42:02 +02:00
|
|
|
- apache.register_site
|
|
|
|
|
|
|
|
{% if grains['os']=="Ubuntu" %}
|
2013-08-13 22:29:58 +02:00
|
|
|
extend:
|
|
|
|
apache:
|
|
|
|
pkg:
|
|
|
|
- order: 175
|
|
|
|
service:
|
|
|
|
- order: 455
|
2013-07-30 18:42:02 +02:00
|
|
|
|
|
|
|
a2dissite 000-default:
|
|
|
|
cmd.run:
|
|
|
|
- order: 225
|
|
|
|
- onlyif: ls /etc/apache2/sites-enabled/000-default
|
|
|
|
- watch_in:
|
|
|
|
- cmd: apache-reload
|
2013-07-27 20:29:52 +02:00
|
|
|
- require:
|
2013-07-30 18:42:02 +02:00
|
|
|
- pkg: apache
|
|
|
|
|
|
|
|
apache-reload:
|
|
|
|
cmd.wait:
|
|
|
|
- name: service apache2 reload
|
|
|
|
- order: 420
|
|
|
|
|
|
|
|
apache-restart:
|
|
|
|
cmd.wait:
|
|
|
|
- name: service apache2 restart
|
|
|
|
- order: 425
|
|
|
|
|
|
|
|
/etc/apache2/sites-available/default:
|
|
|
|
file.absent:
|
|
|
|
- order: 230
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
|
|
|
|
/etc/apache2/sites-available/default-ssl:
|
|
|
|
file.absent:
|
|
|
|
- order: 230
|
|
|
|
- require:
|
|
|
|
- pkg: apache
|
|
|
|
|
|
|
|
{% endif %} #END: os = ubuntu
|