MythicSalt/states/lunch_website/init.sls

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-03-08 15:43:07 +00:00
lunch_website_package:
pkg.installed:
- pkgs:
- dokuwiki
lunch_website_config:
file.managed:
- names:
- /etc/dokuwiki/local.php:
- source: salt://lunch_website/dokuwiki_local.php
- mode: 0664
- group: www-data
- /etc/dokuwiki/local.php.bak:
- source: salt://lunch_website/dokuwiki_local.php
- mode: 0664
- group: www-data
- /etc/dokuwiki/htaccess:
- source: salt://lunch_website/dokuwiki_htaccess
lunch_website_dir_perms:
file.directory:
- name: /etc/dokuwiki
- group: www-data
- mode: 0775
lunch_website_web:
file.managed:
- require:
- sls: apache
- sls: certificates/client
- names:
- /etc/apache2/sites-available/lunch.org.uk.conf:
- source: salt://lunch_website/lunch.org.uk.conf
apache_site.enabled:
- require:
- file: /etc/apache2/sites-available/lunch.org.uk.conf
- name: lunch.org.uk
service.running:
- name: apache2
- reload: true
- watch:
- file: /etc/apache2/sites-available/lunch.org.uk.conf