I don't understand what you're doing. But it sounds like you might need the
"user" attribute of the exec type?
exec {'some command':
user => 'admin',
}
See http://docs.puppetlabs.com/references/latest/type.html#exec and scroll
down a bit.
On Wednesday, August 22, 2012 2:50:28 AM UTC-7, Prosenjit Ghosh wrote:
>
> Created a puppet master in one Linux.X64/rh50 machine.
> Created a puppet agent in another Linux.X64/rh50 machine.
>
> Need to run any command from puppet master and that will execute in puppet
> agent when puppet agent will connect to puppet master.
>
> This is happening correctly for me when created master and agent through
> root user.
>
> But I need to execute a command that wont allow root user. I need any user
> except root. I tried successfully to create puppet master through a
> different user. But not able to execute the command when connecting the
> agent through that different user.
>
> Any suggestion on this how to connect agent to the master through a
> different user to execute a command through puppet module
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/Y2EWm3dKGIUJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.