From 2d3f7a289cf87eb54f4a0e53d86c5b5f7d5fb670 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 30 Jun 2015 14:13:58 +0000 Subject: [PATCH] Disable some mailing lists from being published to fedmsg. --- roles/mailman/files/fedmsg-plugin-conf.py | 8 ++++++++ roles/mailman/tasks/main.yml | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 roles/mailman/files/fedmsg-plugin-conf.py diff --git a/roles/mailman/files/fedmsg-plugin-conf.py b/roles/mailman/files/fedmsg-plugin-conf.py new file mode 100644 index 0000000000..2678376e09 --- /dev/null +++ b/roles/mailman/files/fedmsg-plugin-conf.py @@ -0,0 +1,8 @@ +config = { + # These are mailing lists that we don't publish to fedmsg (because spam) + 'mailman.excluded_lists' = [ + 'scm-commits', + #'i18n-bugs',# disable this eventually + #'fonts-bugs', # disable this eventually + ], +} diff --git a/roles/mailman/tasks/main.yml b/roles/mailman/tasks/main.yml index 85d10b168a..163a1cca0c 100644 --- a/roles/mailman/tasks/main.yml +++ b/roles/mailman/tasks/main.yml @@ -122,6 +122,13 @@ when: ansible_distribution == 'RedHat' tags: mailman +- name: copy in our fedmsg-plugin conf file + copy: src=fedmsg-plugin-conf.py dest=/etc/fedmsg.d/fedmsg-plugin-conf.py + tags: + - fedmsgdconfig + - mailman + notify: restart mailman3 + - name: install packages when not using source extracts when: ansible_hostname != "lists-dev.cloud.fedoraproject.org" yum: pkg={{ item }} state=present