From a1175e60a71452808aa38a78e7c045fca7117b5a Mon Sep 17 00:00:00 2001 From: Qixiang Wan Date: Sun, 11 Feb 2018 14:11:01 +0800 Subject: [PATCH] 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. --- inventory/group_vars/freshmaker-stg | 2 +- playbooks/groups/freshmaker.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/inventory/group_vars/freshmaker-stg b/inventory/group_vars/freshmaker-stg index 21cf20127c..ca3e5b5dad 100644 --- a/inventory/group_vars/freshmaker-stg +++ b/inventory/group_vars/freshmaker-stg @@ -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 diff --git a/playbooks/groups/freshmaker.yml b/playbooks/groups/freshmaker.yml index 8eeb09cdff..704ab7f4f0 100644 --- a/playbooks/groups/freshmaker.yml +++ b/playbooks/groups/freshmaker.yml @@ -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 }}"