43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
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
|