diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-25 18:48:30 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-25 18:48:30 -0200 |
commit | 96f26881e016e6be37f47da387187b41602b21ea (patch) | |
tree | 6fe12cf42cc0c1415e0c5a5ffac849f0b7503453 | |
parent | 2505014e9878638d15926dff02cd00149ed3fd33 (diff) | |
download | puppet-ikiwiki-96f26881e016e6be37f47da387187b41602b21ea.tar.gz puppet-ikiwiki-96f26881e016e6be37f47da387187b41602b21ea.tar.bz2 |
Controlling the post-update hook
-rw-r--r-- | manifests/init.pp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 2661953..6053bbf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -78,6 +78,21 @@ class ikiwiki { group => root, } } + + # The post-update hook should have www-data as owner so + # gitosis can do a setuid to it and write to ikiwiki + # folders without messing the permission scheme. + # + # See http://ikiwiki.info/rcs/git/ + # http://ikiwiki.info/forum/multi-user_setup_of_ikiwiki__44___gitosis_and_apache2_in_Debian_Sid/ + # + # TODO: ensure the post-update hook is setuid. + # + file { "/var/git/repositories/${name}.git/hooks/post-update": + ensure => present, + owner => www-data, + group => gitosis, + } } } } |