From 3587902cfbfa46448203f081d9ecb07d4c7383b3 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 12 Jun 2013 20:24:38 +0000 Subject: [PATCH] Define the restart handler in a role to see if it will work. --- handlers/restart_services.yml | 3 --- roles/badges-backend/templates/badges-awarder.py | 1 - roles/fedmsg-hub/handlers/main.yml | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 roles/fedmsg-hub/handlers/main.yml diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml index 862a0afd22..278bf30482 100644 --- a/handlers/restart_services.yml +++ b/handlers/restart_services.yml @@ -82,6 +82,3 @@ - name: run fasclient action: command /usr/bin/fasClient -i - -- name: restart fedmsg-hub - action: service name=fedmsg-hub state=restarted diff --git a/roles/badges-backend/templates/badges-awarder.py b/roles/badges-backend/templates/badges-awarder.py index ce1e6f0c16..769577b968 100644 --- a/roles/badges-backend/templates/badges-awarder.py +++ b/roles/badges-backend/templates/badges-awarder.py @@ -1,5 +1,4 @@ config = { - # We need to tell the fedmsg-hub that it should load our consumer on start. "fedmsg.consumers.badges.enabled": True, diff --git a/roles/fedmsg-hub/handlers/main.yml b/roles/fedmsg-hub/handlers/main.yml new file mode 100644 index 0000000000..eeb0c8707f --- /dev/null +++ b/roles/fedmsg-hub/handlers/main.yml @@ -0,0 +1,2 @@ +- name: restart fedmsg-hub + action: service name=fedmsg-hub state=restarted