35 lines
982 B
Plaintext
35 lines
982 B
Plaintext
havoc_wordpress:
|
|
pkg.installed:
|
|
- name: wordpress
|
|
mysql_user.present:
|
|
- name: havoc
|
|
- password: '{{ salt['pillar.get']('mariadb:havoc_pw', '') }}'
|
|
mysql_database.present:
|
|
- name: cryhavoc
|
|
mysql_grants.present:
|
|
- grant: all privileges
|
|
- database: cryhavoc.*
|
|
- user: havoc
|
|
file.managed:
|
|
- name: /etc/wordpress/config-www.cryhavoc.org.uk.php
|
|
- source: salt://havoc_website/config-www.cryhavoc.org.uk.php
|
|
- template: jinja
|
|
|
|
havoc_website:
|
|
file.managed:
|
|
- require:
|
|
- sls: apache
|
|
- sls: certificates/client
|
|
- names:
|
|
- /etc/apache2/sites-available/www.cryhavoc.org.uk.conf:
|
|
- source: salt://havoc_website/cryhavoc.org.uk.conf
|
|
apache_site.enabled:
|
|
- require:
|
|
- file: /etc/apache2/sites-available/www.cryhavoc.org.uk.conf
|
|
- name: www.cryhavoc.org.uk
|
|
service.running:
|
|
- name: apache2
|
|
- reload: true
|
|
- watch:
|
|
- file: /etc/apache2/sites-available/www.cryhavoc.org.uk.conf
|