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:
parent
de1a1701c5
commit
5132a5e46a
1 changed files with 15 additions and 0 deletions
15
roles/gitolite/check_fedmsg_hooks/tasks/main.yml
Normal file
15
roles/gitolite/check_fedmsg_hooks/tasks/main.yml
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue