summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Bridon <bochecha@fedoraproject.org>2014-07-15 12:09:12 +0200
committerKevin Fenzi <kevin@scrye.com>2014-08-26 18:28:26 +0000
commit5132a5e46a4655aa48ab8650f0192d7e5d526ada (patch)
tree9e98822ee39f685b087565da12e6cee306e8a47b
parentde1a1701c535ece5cb2c2d47826a5ebc5e41d560 (diff)
downloadansible-5132a5e46a4655aa48ab8650f0192d7e5d526ada.tar.gz
ansible-5132a5e46a4655aa48ab8650f0192d7e5d526ada.tar.xz
ansible-5132a5e46a4655aa48ab8650f0192d7e5d526ada.zip
Add a new gitolite/check_fedmsg_hooks role
This will be needed to migrate Dist Git from puppet to ansible.
-rw-r--r--roles/gitolite/check_fedmsg_hooks/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/gitolite/check_fedmsg_hooks/tasks/main.yml b/roles/gitolite/check_fedmsg_hooks/tasks/main.yml
new file mode 100644
index 000000000..0d25329fd
--- /dev/null
+++ b/roles/gitolite/check_fedmsg_hooks/tasks/main.yml
@@ -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"