freshmaker: show app config on stage for temp troubleshooting

Seems the parsers on stage are not enabled successfully, show app config
file content for troubleshooting, remove this later.

And a minor var change to restart fedmsg-hub.
This commit is contained in:
Qixiang Wan 2018-02-11 14:11:01 +08:00
parent f8017a26cf
commit a1175e60a7
2 changed files with 12 additions and 1 deletions

View file

@ -1,8 +1,8 @@
---
# For app config
freshmaker_messaging_topic_prefix:
- org.fedoraproject.stg
- org.fedoraproject.prod
- org.fedoraproject.stg
freshmaker_parsers:
- freshmaker.parsers.git:GitReceiveParser

View file

@ -89,3 +89,14 @@
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: show freshmaker app config on stage (for temp troubleshoot)
hosts: freshmaker-stg
tasks:
- name: Slurp hosts file
slurp:
src: /etc/freshmaker/config.py
register: slurpfile
- debug: msg="{{ slurpfile['content'] | b64decode }}"