Ask Your Question

Puppet apply without root or sudo priviledges

asked 2017-03-20 11:34:47 -0600

jaksky gravatar image


I haven't been using puppet for last 1.5 year, but before I had been using it on regular bases. Now I got into situation when I need to install a lot of stuff but without root or sudo access. Is there some way how to use puppet in this setup? I do not need agent - master setup. I am completely fine with puppet apply half manual approach.

I found some modules like rootless etc. but those are coming from 2013, presentation etc. I also found some notion from latest puppet enterpries about this. Definitely I have to consider something freely available atm as it is kind of POC.

Could someone summarise or point me to the right direction? What is possible etc. That would be really great!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-20 16:13:37 -0600

DarylW gravatar image

Without root, puppet will only be able to do what your user can do. I previously used puppet in such a fashion, but I was basically restricted to a combination of exec, file, and augeas resources. You may also be able to start and stop services, provided your user had the correct permissions before hand. When I had done that, it was basically a glorified 'install / deploy script' that would get run with puppet apply to set all of the state the way we expected it to be on the system.

Usually, puppet is used in such a way that it manages most of the configuration from a position of having root, you would declare the state of how you want the system to be configured, and use puppet to manage the system state to make sure it is in the desired configuration.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2017-03-20 11:34:47 -0600

Seen: 78 times

Last updated: Mar 20 '17