enable gear logging configuration
Geard logging configuration is not enabled by default. This results in geard floods /var/log/messages with debug info. Change 568234 provides default geard logging configuration file. With this change this configuration is being enabled. Also collect additional logs for gear. Depends-On: https://review.openstack.org/568234/ Change-Id: I0bfdb398dd806ec92f15eaff67ca5f8251ec193f Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
f2a7f8e55b
commit
419e46ea0c
|
@ -95,3 +95,14 @@ gear_file_ssl_key_content: |
|
|||
7NSS/HJJGlt/SqWSbASpt9gfw1k6a0wffIq6h0+I6bNeajfwMz8bGAMIdHqGRhze
|
||||
TPw69kX4BM39nK3lP2/aiTQ=
|
||||
-----END PRIVATE KEY-----
|
||||
|
||||
# openstack.logrotate
|
||||
logrotate_configs:
|
||||
- name: gear
|
||||
log: /var/log/gear/debug.log /var/log/gear/gear.log
|
||||
options:
|
||||
- compress
|
||||
- missingok
|
||||
- rotate 7
|
||||
- daily
|
||||
- notifempty
|
||||
|
|
|
@ -20,6 +20,10 @@
|
|||
include_role:
|
||||
name: openstack.gearman
|
||||
|
||||
- name: Setup openstack.logrotate role.
|
||||
include_role:
|
||||
name: openstack.logrotate
|
||||
|
||||
post_tasks:
|
||||
- name: Run gear validation.
|
||||
include_role:
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
{% if ansible_host | ipv4 %}
|
||||
Environment="STATSD_HOST={{ hostvars['statsd01'].ansible_host }}"
|
||||
{% endif %}
|
||||
Environment="ARGS=--ssl-ca {{ gear_file_ssl_ca_dest }} --ssl-cert {{ gear_file_ssl_cert_dest }} --ssl-key {{ gear_file_ssl_key_dest }}"
|
||||
Environment="ARGS=--ssl-ca {{ gear_file_ssl_ca_dest }} --ssl-cert {{ gear_file_ssl_cert_dest }} --ssl-key {{ gear_file_ssl_key_dest }} --log-config /etc/gear/logging.conf"
|
||||
Environment="PREFIX={{ gear_pip_virtualenv }}"
|
||||
|
|
|
@ -48,8 +48,8 @@
|
|||
src: "{{ item }}"
|
||||
verify_host: true
|
||||
with_items:
|
||||
- /etc/gear
|
||||
- /var/log/gear
|
||||
- /etc/gear/logging.conf
|
||||
- /var/log/gear/*.log
|
||||
|
||||
- hosts: nb01
|
||||
tasks:
|
||||
|
|
Loading…
Reference in New Issue