diff --git a/roles/mailman/files/mailman3-fedmsg-plugin.RedHat.repo b/roles/mailman/files/mailman3-fedmsg-plugin.RedHat.repo new file mode 100644 index 0000000000..a227e73818 --- /dev/null +++ b/roles/mailman/files/mailman3-fedmsg-plugin.RedHat.repo @@ -0,0 +1,17 @@ +[mailman3-fedmsg-plugin] +name=fedmsg plugin for mailman3, and its deps +baseurl=https://copr-be.cloud.fedoraproject.org/results/ralph/fedmsg-python34/epel-$releasever-$basearch/ +enabled=1 +skip_if_unavailable=1 +gpgcheck=1 +gpgkey=https://copr-be.cloud.fedoraproject.org/results/ralph/fedmsg-python34/pubkey.gpg + +## COPR doesn't provide a source repo as far as I can tell. +## Please fix this file if I'm wrong. +#[mailman3-fedmsg-plugin-source] +#name=fedmsg plugin for mailman3, and its deps - Source +#baseurl=https://copr-be.cloud.fedoraproject.org/results/ralph/fedmsg-python34/epel-$releasever-source/ +#enabled=0 +#skip_if_unavailable=1 +#gpgcheck=1 +#gpgkey=https://copr-be.cloud.fedoraproject.org/results/ralph/fedmsg-python34/pubkey.gpg diff --git a/roles/mailman/tasks/main.yml b/roles/mailman/tasks/main.yml index 88e07d877d..b03e4d121d 100644 --- a/roles/mailman/tasks/main.yml +++ b/roles/mailman/tasks/main.yml @@ -59,7 +59,6 @@ - python-pylibmc - python-django-haystack-xapian - yum-plugin-post-transaction-actions - #- mailman3-fedmsg-plugin # to run the test suite: - python-beautifulsoup4 - python-mock @@ -75,6 +74,19 @@ tags: - packages +- name: setup the mailman3-fedmsg repo + copy: src=mailman3-fedmsg-plugin.RedHat.repo + dest=/etc/yum.repos.d/mailman3-fedmsg-plugin.repo + when: ansible_distribution == 'RedHat' + +- name: add the GPG key for the mailman3-fedmsg-plugin repo + rpm_key: state=present key=https://copr-be.cloud.fedoraproject.org/results/ralph/fedmsg-python34/pubkey.gpg + when: ansible_distribution == 'RedHat' + +- name: install the mailman3 fedmsg plugin rpm + yum: pkg=mailman3-fedmsg-plugin state=present + when: ansible_distribution == 'RedHat' + - name: install packages when not using source extracts when: ansible_hostname != "lists-dev.cloud.fedoraproject.org" yum: pkg={{ item }} state=present diff --git a/roles/mailman/templates/mailman.cfg.j2 b/roles/mailman/templates/mailman.cfg.j2 index 3299a03eac..123a270a28 100644 --- a/roles/mailman/templates/mailman.cfg.j2 +++ b/roles/mailman/templates/mailman.cfg.j2 @@ -32,9 +32,9 @@ class: mailman_hyperkitty.Archiver enable: yes configuration: {{ mailman_webui_confdir }}/mailman-hyperkitty.cfg -#[archiver.fedmsg] -#class: mailman3_fedmsg_plugin.Archiver -#enable: yes +[archiver.fedmsg] +class: mailman3_fedmsg_plugin.Archiver +enable: yes [archiver.prototype] enable: yes