# Configuration for stage-multi servers.

#############################################
# Class definitions.
classes:
 - munin::db_monitor

#############################################
# Web configuration.
# Staging servers also need a vhost for bobo / Venues.
site_profile::web::vhosts:
  'venues-stage.cashmusic.org':
    port: 80
    docroot: '/var/www/bobo'
    override:
      - 'All'
    docroot_owner: deploy
    docroot_group: deploy
    redirectmatch_status:
      - '404'
    redirectmatch_regexp:
      - '\.git(/.*|$)/'
    require:
      - User[deploy]
  'watt-stage.cashmusic.org':
    port: 80
    docroot: '/var/www/watt'
    override:
      - 'All'
    docroot_owner: deploy
    docroot_group: deploy
    redirectmatch_status:
      - '404'
    redirectmatch_regexp:
      - '\.git(/.*|$)/'
    require:
      - User[deploy]

# This host needs an additional code deploy script for bobo.
site_profile::web::web_deploy_scripts:
  - 'bobo_code_deploy.sh'
  - 'watt_code_deploy.sh'
  - 'watt_clear_generated_content.sh'

site_profile::web::sudo_conf:
  deploy_watt_commands:
    priority: 20
    content: 'deploy ALL=(root) NOPASSWD: /usr/local/bin/watt_clear_generated_content.sh'

# Configuration for stage-multi servers.

#############################################
# Class definitions.
classes:
 - munin::db_monitor

#############################################
# Web configuration.
# Staging servers also need a vhost for bobo / Venues.
site_profile::web::vhosts:
  'venues-stage.cashmusic.org':
    port: 80
    docroot: '/var/www/bobo'
    override:
      - 'All'
    docroot_owner: deploy
    docroot_group: deploy
    redirectmatch_status:
      - '404'
    redirectmatch_regexp:
      - '\.git(/.*|$)/'
    require:
      - User[deploy]
  'watt-stage.cashmusic.org':
    port: 80
    docroot: '/var/www/watt'
    override:
      - 'All'
    docroot_owner: deploy
    docroot_group: deploy
    redirectmatch_status:
      - '404'
    redirectmatch_regexp:
      - '\.git(/.*|$)/'
    require:
      - User[deploy]

# This host needs an additional code deploy script for bobo.
site_profile::web::web_deploy_scripts:
  - 'bobo_code_deploy.sh'
  - 'bobo_code_deploy_with_sql.sh'
  - 'watt_code_deploy.sh'
  - 'watt_clear_generated_content.sh'

site_profile::web::sudo_conf:
  deploy_watt_commands:
    priority: 20
    content: 'deploy ALL=(root) NOPASSWD: /usr/local/bin/watt_clear_generated_content.sh'

Add new venues deploy script
Add new venues deploy script
