c143c4
# NB: do not enable these tools in production
c143c4
c143c4
{% set tools = salt['pillar.get']('vbulletin:tools', False) %}
c143c4
c143c4
/srv/www/vhosts/forums/htdocs/vb_test.php:
efa523
{% if tools %}
c143c4
  file.managed:
c143c4
    - source: salt://profile/vbulletin/files/vb_test.php
c143c4
{% else %}
c143c4
  file.absent
c143c4
{% endif %}
c143c4
c143c4
/srv/www/vhosts/forums/htdocs/info.php:
efa523
{% if tools %}
c143c4
  file.managed:
c143c4
    - contents: ""
c143c4
{% else %}
c143c4
  file.absent
c143c4
{% endif %}
c143c4
c143c4
/srv/www/vhosts/forums/db-tweak.sql:
efa523
{% if tools %}
c143c4
  file.managed:
c143c4
    - source: salt://profile/vbulletin/files/db-tweak.sql
c143c4
    - template: jinja
c143c4
    - defaults:
c143c4
        host: {{ pillar.vbulletin.config.MasterServer.servername }}
c143c4
        username: {{ pillar.vbulletin.config.MasterServer.username }}
c143c4
        password: {{ pillar.vbulletin.config.MasterServer.password }}
c143c4
        bburl: {{ grains.weburls[0] ~ '/forum' }}
c143c4
        frontendurl: {{ grains.weburls[0] }}
c143c4
{% else %}
c143c4
  file.absent
c143c4
{% endif %}
c143c4
c143c4