Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silly question - server side hook, puppet run #99

Open
williamayerst opened this issue May 23, 2017 · 1 comment
Open

Silly question - server side hook, puppet run #99

williamayerst opened this issue May 23, 2017 · 1 comment

Comments

@williamayerst
Copy link

Hi there!

I'm looking to utilise this repo and just running into a bit of a confusion around how I get the server-side custom hooks working. I was wondering if someone might be able to shed some light on the situation?

There was some finangling required to get things running with Puppet 4.x and on Ubuntu 16.04 but all appears to be fine.

The final hurdle seems to be that the pre-recieve git hook is attempting to create a default .puppetlabs file, but it's creating it under /var/opt/gitlab and this is failing because it doesn't have the permissions to do so. I am wary about giving the git user full rights over this folder (since apparently that's not intended).

The hook is running as the 'git' user, whose home directory I have changed/set to /home/git, but that hasn't made any difference.

Any thoughts?

@williamayerst
Copy link
Author

(FWIW creating a folder called ".puppetlabs" in /var/opt/gitlab and chowning to git makes this work.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant