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

Change Puppet[:user] and Puppet[:group] to those of the user running the test #17

Closed
wants to merge 1 commit into from

Conversation

mmarod
Copy link

@mmarod mmarod commented May 13, 2015

This is my fix for #15.

The problem seemed to boil down to the fact that Puppet[:user] and Puppet[:group] don't change to the running user during the apply. In this commit, I grab the user running the script and their primary group using Ruby's Etc module before the apply occurs.

It's a bit hacky but it gets me through the tests as non-root.

@mmarod mmarod force-pushed the change-puppet-user branch from 78fd336 to 6771bb6 Compare May 13, 2015 07:19
@mmarod mmarod force-pushed the change-puppet-user branch from 36029f2 to 9d904e8 Compare May 13, 2015 18:45
@mmarod
Copy link
Author

mmarod commented May 28, 2015

Any thoughts on this?

@nhemingway
Copy link

nhemingway commented Dec 13, 2016

This PR also fixes the problem for me.

Having cloned and also applied this PR, the tests all pass (ruby 2.3.1). Is there a blocker to merging this and cutting a release?

I note that the failing travis tests are for rubies 1.8 and 1.9. Aren't they both deprecated by puppet now>

@sirinek
Copy link

sirinek commented Jul 6, 2018

@nhemingway at what point can we just create a 0.5.0 on our own? The last release was over 3 years ago.

@nhemingway
Copy link

nhemingway commented Jul 9, 2018 via email

@mmarod mmarod closed this Oct 26, 2018
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

Successfully merging this pull request may close these issues.

3 participants