dnet-eagle/group_vars/eagle_ws_devel: Use logstash as log target.

This commit is contained in:
Andrea Dell'Amico 2016-01-19 14:02:15 +01:00
parent 44233dd5f7
commit ab0915ab32
3 changed files with 18 additions and 34 deletions

View File

@ -6,8 +6,10 @@
when:
- tomcat_jmx_enabled
- tomcat_jmx_auth_enabled
tags: [ 'tomcat', 'jmx' ]
- include: tomcat-log4j-logging.yml
when: tomcat_use_log4j
tags: [ 'tomcat', 'tomcat_log4j' ]
- include: tomcat-logger-logging.yml
when: not tomcat_use_log4j
- include: access_log.yml

View File

@ -4,19 +4,13 @@
when:
- tomcat_jmx_enabled
- tomcat_jmx_auth_enabled
notify:
- tomcat restart
tags:
- tomcat
- jmx
notify: tomcat restart
tags: [ 'tomcat', 'jmx' ]
- name: Distribute the jmx role file
copy: src=jmxremote.access dest={{ tomcat_jmx_auth_dir }}/jmxremote.access owner=root mode=0644
when:
- tomcat_jmx_enabled
- tomcat_jmx_auth_enabled
notify:
- tomcat restart
tags:
- tomcat
- jmx
notify: tomcat restart
tags: [ 'tomcat', 'jmx' ]

View File

@ -2,52 +2,40 @@
# Manage tomcat internal logs with log4j
- name: Install log4j
apt: pkg=liblog4j1.2-java state={{ tomcat_pkg_state }}
notify:
tomcat restart
tags:
- tomcat
notify: tomcat restart
tags: [ 'tomcat', 'tomcat_log4j' ]
- name: Install tomcat-juli-adapters
copy: src=tomcat{{ tomcat_version }}-juli-adapters.jar dest=/usr/share/java/tomcat-juli-adapters.jar
tags:
- tomcat
tags: [ 'tomcat', 'tomcat_log4j' ]
- name: Install tomcat-juli
copy: src=tomcat{{ tomcat_version }}-juli-log4j.jar dest=/usr/share/java/tomcat-juli-log4j.jar
tags:
- tomcat
tags: [ 'tomcat', 'tomcat_log4j' ]
- name: Configure tomcat to use the log4j system library
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/lib/{{ item }} state=link
with_items:
- log4j-1.2.jar
- tomcat-juli-adapters.jar
notify:
tomcat restart
tags:
- tomcat
notify: tomcat restart
tags: [ 'tomcat', 'tomcat_log4j' ]
- name: Configure tomcat to use the log4j version of the juli library
file: src=/usr/share/java/{{ item }} dest={{ tomcat_catalina_home_dir }}/bin/tomcat-juli.jar state=link
with_items:
- tomcat-juli-log4j.jar
notify:
tomcat restart
tags:
- tomcat
notify: tomcat restart
tags: [ 'tomcat', 'tomcat_log4j' ]
- name: Install log4j.properties
template: src=log4j.properties.j2 dest={{ tomcat_catalina_home_dir }}/lib/log4j.properties mode=0644 owner=root group=root
when: tomcat_install_the_log4j_properties
notify:
tomcat restart
tags:
- tomcat
notify: tomcat restart
tags: [ 'tomcat', 'tomcat_log4j' ]
- name: Remove logging.properties
file: dest=/etc/tomcat{{ tomcat_version }}/logging.properties state=absent
notify:
tomcat restart
tags:
- tomcat
notify: tomcat restart
tags: [ 'tomcat', 'tomcat_log4j' ]