media-rsyslog.yml 1.44 KB
# rsyslog config for media containers

# How to run:
# ansible-playbook -i inventories/media/hosts playbooks/media-rsyslog.yml

- hosts: media-containers
  vars:
    rsyslog_module: yohomars-platform
    rsyslog_files:
      - warn-log
      - request-timeout
      - request-stat
      - database-timeout
      - database-stat
  remote_user: root
  roles:
    - java-rsyslog


- hosts: media-containers
  vars:
    rsyslog_module: yohonow-platform
    rsyslog_files:
      - warn-log
      - request-timeout
      - request-stat
      - database-timeout
      - database-stat
  remote_user: root
  roles:
    - java-rsyslog


- hosts: media-containers
  vars:
    rsyslog_module: yohomars-search
    rsyslog_files:
      - database-timeout
      - index-rebuild
      - request-timeout
      - request-stat
      - slow-sql
      - warn-log
  remote_user: root
  roles:
    - java-rsyslog


- hosts: media-containers
  vars:
    rsyslog_module: yohonow
    rsyslog_files:
      - request-timeout
      - request-stat
      - database-timeout
      - database-stat
      - mq-producer
      - mq-consumer
  remote_user: root
  roles:
    - java-rsyslog


- hosts: media-containers
  vars:
    rsyslog_module: yohomars
    rsyslog_files:
      - debug-log
      - warn-log
      - request-timeout
      - request-stat
      - database-timeout
      - database-stat
      - mq-producer
      - mq-consumer
      - points-raffle-msg
  remote_user: root
  roles:
    - java-rsyslog