cowboy_wordpress: pkg.installed: - name: wordpress mysql_user.present: - name: woody - password: '{{ salt['pillar.get']('mariadb:woody_pw', '') }}' mysql_database.present: - name: woody mysql_grants.present: - grant: all privileges - database: woody.* - user: woody file.managed: - name: /etc/wordpress/config-www.cowboybuilder.org.uk.php - source: salt://cowboy_website/config-www.cowboybuilder.org.uk.php - template: jinja cowboy_website: file.managed: - require: - sls: apache - names: - /etc/apache2/sites-available/www.cowboybuilder.org.uk.conf: - source: salt://cowboy_website/cowboybuilder.org.uk.conf apache_site.enabled: - require: - file: /etc/apache2/sites-available/www.cowboybuilder.org.uk.conf - name: www.cowboybuilder.org.uk service.running: - name: apache2 - reload: true - watch: - file: /etc/apache2/sites-available/www.cowboybuilder.org.uk.conf