diff --git a/roles/batcave/files/infra-tags-report.cron b/roles/batcave/files/infra-tags-report.cron new file mode 100644 index 0000000000..3be5d2b429 --- /dev/null +++ b/roles/batcave/files/infra-tags-report.cron @@ -0,0 +1 @@ +* * * * 1 nobody /usr/local/bin/infra-tags-report.sh >& /dev/null diff --git a/roles/batcave/files/infra-tags-report.sh b/roles/batcave/files/infra-tags-report.sh new file mode 100644 index 0000000000..7f7ec0b363 --- /dev/null +++ b/roles/batcave/files/infra-tags-report.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +TMPFILE=`mktemp` || exit 1 + +echo "This is a list of packages in the various infrastructure koji tags" >> $TMPFILE +echo "Please check and make sure there are not any that can be removed/dropped" >> $TMPFILE + +for TAG in `koji list-tags | grep infra$`; do + + echo -e "\n\t\t\t${TAG}\n" >> $TMPFILE + koji list-pkgs --tag=${TAG} --noinherit >> $TMPFILE + +done + +mail -s "Weekly Koji Infra Tag Report" infrastructure@lists.fedoraproject.org < $TMPFILE + +rm -f $TMPFILE diff --git a/roles/batcave/tasks/main.yml b/roles/batcave/tasks/main.yml index 78fbd92818..7d09d537df 100644 --- a/roles/batcave/tasks/main.yml +++ b/roles/batcave/tasks/main.yml @@ -310,6 +310,21 @@ tags: - batcave - config +# +# Monday morning run a script to show all the packages we have in infra tags in koji. +# + +- name: Install infra-tags-report script + copy: src=infra-tags-report.sh dest=/usr/local/bin/infra-tags-report.sh mode=0755 + tags: + - batcave + - config + +- name: Install infra-tags-report cron + copy: src=infra-tags-report.cron dest=/etc/cron.d/infra-tags-report.cron mode=0644 + tags: + - batcave + - config # # fasClient fedmsg job