add infra-tags-report script running on mondays. ticket 5504. Thanks marc84 and alda

This commit is contained in:
Kevin Fenzi 2016-10-12 17:12:38 +00:00
parent f0a1fee8e4
commit 6164896741
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1 @@
* * * * 1 nobody /usr/local/bin/infra-tags-report.sh >& /dev/null

View file

@ -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

View file

@ -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