add infra-tags-report script running on mondays. ticket 5504. Thanks marc84 and alda
This commit is contained in:
parent
f0a1fee8e4
commit
6164896741
3 changed files with 33 additions and 0 deletions
1
roles/batcave/files/infra-tags-report.cron
Normal file
1
roles/batcave/files/infra-tags-report.cron
Normal file
|
@ -0,0 +1 @@
|
|||
* * * * 1 nobody /usr/local/bin/infra-tags-report.sh >& /dev/null
|
17
roles/batcave/files/infra-tags-report.sh
Normal file
17
roles/batcave/files/infra-tags-report.sh
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue