|
|
# rsyslog config for media containers
|
|
|
# rsyslog config for containers
|
|
|
|
|
|
# How to run:
|
|
|
# ansible-playbook -i inventories/media/hosts playbooks/media-rsyslog.yml
|
|
|
# ansible-playbook -i inventories/containers/hosts playbooks/containers-rsyslog.yml
|
|
|
|
|
|
- hosts: media-containers
|
|
|
vars:
|
...
|
...
|
@@ -213,3 +213,95 @@ |
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: web-containers
|
|
|
vars:
|
|
|
rsyslog_module: yoho-seo
|
|
|
rsyslog_files:
|
|
|
- seo-task-err
|
|
|
- seo-task-out
|
|
|
- yoho-seo-err
|
|
|
- yoho-seo-out
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: web-containers
|
|
|
vars:
|
|
|
rsyslog_module: yoho-doom-spider
|
|
|
rsyslog_files:
|
|
|
- doom-spider-err
|
|
|
- doom-spider-out
|
|
|
- ds-task-err
|
|
|
- ds-task-out
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: web-containers
|
|
|
vars:
|
|
|
rsyslog_module: java-yohobuy-global
|
|
|
rsyslog_files:
|
|
|
- nginx/access_yohobuy_global_bs
|
|
|
- nginx/nginx_error
|
|
|
- globalbuy/database-stat
|
|
|
- globalbuy/database-timeout
|
|
|
- globalbuy/debug-log
|
|
|
- globalbuy/warn-log
|
|
|
- globalbuy/mq-consumer
|
|
|
- globalbuy/request-timeout
|
|
|
- globalbuy/use-coupons
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: yoho-java-container
|
|
|
vars:
|
|
|
rsyslog_module: yoho-canal
|
|
|
rsyslog_files:
|
|
|
- canal/canal
|
|
|
- yhgrass/yhgrass
|
|
|
- yhgrass/meta
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: yoho-java-container
|
|
|
vars:
|
|
|
rsyslog_module: yoho-datasync-consumer
|
|
|
rsyslog_files:
|
|
|
- datacheck-error
|
|
|
- debug
|
|
|
- info
|
|
|
- warn
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: yoho-java-container
|
|
|
vars:
|
|
|
rsyslog_module: yoho-datasync-producer
|
|
|
rsyslog_files:
|
|
|
- debug
|
|
|
- info
|
|
|
- warn
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
- hosts: yoho-java-container
|
|
|
vars:
|
|
|
rsyslog_module: yoho-datasync-fullsync
|
|
|
rsyslog_files:
|
|
|
- debug
|
|
|
- info
|
|
|
- warn
|
|
|
- datacheck-error
|
|
|
remote_user: root
|
|
|
roles:
|
|
|
- java-rsyslog
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|