MythicSalt/states/webmail/init.sls

30 lines
762 B
Plaintext
Raw Permalink Normal View History

2023-03-08 15:40:51 +00:00
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
- template: jinja
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