Help talk:Self-hosted puppetmaster
precise up to date
The manual says that a precise instance should be used. Is that still up to date for new developments?
setting up /var/lib/git/operations/puppet as pushable
under "how do I submit my changes to gerrit?" it is suggested to push straight to the repo, git will by default refuse to push on the same branch on a non-bare repo because it confuses the index and the working tree. A compromise I found is to push to a bare repo (perhaps in one's home directory) and have that repo's post-receive hook in turn update the main repo as such:
$ cat puppet.git/hooks/post-receive #!/bin/sh set -e set -u repo_dir=$PWD [ "$(git config core.bare)" = 'false' ] && repo_dir=$PWD/.. cd /var/lib/git/operations/puppet sudo git fetch "$repo_dir" sudo git reset --hard FETCH_HEAD