aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-25 18:48:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-25 18:48:30 -0200
commit96f26881e016e6be37f47da387187b41602b21ea (patch)
tree6fe12cf42cc0c1415e0c5a5ffac849f0b7503453 /manifests
parent2505014e9878638d15926dff02cd00149ed3fd33 (diff)
downloadpuppet-ikiwiki-96f26881e016e6be37f47da387187b41602b21ea.tar.gz
puppet-ikiwiki-96f26881e016e6be37f47da387187b41602b21ea.tar.bz2
Controlling the post-update hook
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp15
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,
+ }
}
}
}