MythicSalt/states/webmail/init.sls

29 lines
740 B
Plaintext

roundcube_package:
pkg.installed:
- pkgs:
- roundcube-sqlite3
- roundcube-plugins
roundcube_config:
file.managed:
- name: /etc/roundcube/config.inc.php
- source: salt://webmail/roundcube_config.inc.php
roundcube_web:
file.managed:
- require:
- sls: apache
- sls: certificates
- names:
- /etc/apache2/sites-available/webmail.lunch.org.uk.conf:
- source: salt://webmail/webmail.lunch.org.uk.conf
apache_site.enabled:
- require:
- file: /etc/apache2/sites-available/webmail.lunch.org.uk.conf
- name: webmail.lunch.org.uk
service.running:
- name: apache2
- reload: true
- watch:
- file: /etc/apache2/sites-available/webmail.lunch.org.uk.conf