Add a new gitolite/check_fedmsg_hooks role

This will be needed to migrate Dist Git from puppet to ansible.
This commit is contained in:
Mathieu Bridon 2014-07-15 12:09:12 +02:00 committed by Kevin Fenzi
parent de1a1701c5
commit 5132a5e46a

View file

@ -0,0 +1,15 @@
---
# tasklist for setting up Gitolite Fedmsg checks
- name: install the needed packages
yum: pkg=git state=present
- name: install and schedule the script
copy: >
src=check-perms.py dest=/usr/local/bin/git-check-perms
owner=root group=root mode=0755
cron: >
name="git-check-perms" cron_file="ansible-git-check-perms"
minute=10 hour=0 weekday=3
user=nobody
job="MAILTO={{git_check_perms_mailto | "root"}} PATH=/usr/bin:/usr/local/bin git check-perms {{ git_basepath | "/git"}} --check=fedmsg-hook"