-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
[enhancement] mcollective agent as non-root #135
Comments
Approach 2 is nonworkable because it involves changing infrastructure that isn't actually related to this project. |
Sounds like a good feature request. I assume you have multiple masters right? i.e. you have to/want to use the mcollective agent rather then just run the webhook as the respective user i.e. https://github.com/acidprime/r10k#running-without-mcollective for your specific case. If you want to submit a PR , then I would be glad to review it, issue is that it appears the shell class in mcollective does not let you pass a user. This likely means we would need to have it We could also not use that class and start using spawn simliar to the shell agent but thats a little more then a patch https://github.com/puppetlabs/mcollective-shell-agent/blob/master/lib/mcollective/agent/shell.ddl#L20-L27 |
The shell agent doesn't appear to actually use the user parameter. I would highly recommend against |
That's great feedback Eli - I'm going to start putting together a PR to add this functionality shortly, I'm planning to go down the route of using |
Be advised that you'll need to quote the command if it contains spaces, otherwise all the arguments will get lost. Furthermore, we want file redirection to happen on the outside of the Edit: Actually, since redirection can be done from the |
Thats really helpful, thanks so much! I've finished for the day now but I should be able to get onto this in the next couple of days On 24 February 2015 6:56:24 PM AEDT, Eli Young notifications@github.com wrote:
Sent from my Android device with K-9 Mail. Please excuse my brevity. |
Created https://github.com/acidprime/r10k/pull/141 to address this - let me know what you think. Thanks. |
Summary
It would be a nice enhancement if the mcollective agent installed via:
Had an option to execute the
r10k
command as an unprivileged user. Running as non-root is a requirement for some deployments.Approaches
files/agent/r10k.rb
The text was updated successfully, but these errors were encountered: