Copy a logging config file for the fedmsg-hub (bodhi2).
This commit is contained in:
parent
95335c056b
commit
8ed37dd8ab
2 changed files with 35 additions and 0 deletions
23
roles/bodhi2/base/files/bodhi-logging.py
Normal file
23
roles/bodhi2/base/files/bodhi-logging.py
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# This should get merged smartly with the site-wide fedmsg.d/logging.py we have
|
||||||
|
# installed everywhere.
|
||||||
|
config = dict(
|
||||||
|
logging=dict(
|
||||||
|
loggers=dict(
|
||||||
|
bodhi={
|
||||||
|
"level": "DEBUG",
|
||||||
|
"propagate": False,
|
||||||
|
"handlers": ["console", "mailer"],
|
||||||
|
},
|
||||||
|
bodhi={
|
||||||
|
"level": "WARN",
|
||||||
|
"propagate": False,
|
||||||
|
"handlers": ["console", "mailer"],
|
||||||
|
},
|
||||||
|
root={
|
||||||
|
"level": "INFO",
|
||||||
|
"propagate": False,
|
||||||
|
"handlers": ["console", "mailer"],
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
|
@ -58,6 +58,18 @@
|
||||||
- config
|
- config
|
||||||
- bodhi
|
- bodhi
|
||||||
|
|
||||||
|
- name: Copy a logging configuration in for the fedmsg-hub
|
||||||
|
copy: >
|
||||||
|
src=bodhi-logging.py
|
||||||
|
dest=/etc/fedmsg.d/bodhi-logging.py
|
||||||
|
owner=root
|
||||||
|
group=root
|
||||||
|
mode=0644
|
||||||
|
notify:
|
||||||
|
- restart fedmsg-hub
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- bodhi
|
||||||
|
|
||||||
- name: setup basic /etc/httpd/conf.d/ bodhi contents
|
- name: setup basic /etc/httpd/conf.d/ bodhi contents
|
||||||
template: >
|
template: >
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue