77ea8e
# NB: these tools should not be enabled in production
c143c4
c143c4
{% set tools = salt['pillar.get']('vbulletin:tools', False) %}
c143c4
77ea8e
/srv/www/vhosts/forums/htdocs/core/install:
77ea8e
{% if tools %}
77ea8e
  file.copy:
77ea8e
    - source: /srv/www/vhosts/forums/upload/core/install
77ea8e
    - preserve: True
77ea8e
    - user: root
77ea8e
    - group: nginx
77ea8e
    - mode: 644
77ea8e
{% else %}
77ea8e
  file.absent
77ea8e
{% endif %}
77ea8e
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:
0325f0
        dbname: {{ pillar.vbulletin.config.Database.dbname }}
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