Is it possible two run multiple puppet agents with different user rights on one host?
I have a server which should be administered by two non related users through puppet. (one user account for the developer and one root account for the server team)
The non-root account can just run
puppet agent --one-time --no-daemonize
and any other flavor ofpuppet agent
.Configuration and persistent data will be looked up and stored in
~/.puppet/
for Puppet 3.x and older~/.puppetlabs/
for Puppet 4.x and laterThings you want to make sure via
~/.puppet/puppet.conf
:certname
setting for the secondary agentserver
as well so that the certificate is not trusted by your main master (yes, you will need a new Puppet master if you want this)vardir
and its children such asssldir
andstatedir
are distinct from the system central location and writeable to the user (it's safest not to touch these at all - the defaults are quite sane; see alsopuppet agent --configprint all
).Also, the manifest should be limited to resources that an unpriviliged agent can manage, such as
etc.