On Friday, October 19, 2012 9:38:25 AM UTC-5, Dominic wrote:
>
> Hi everyone,
>
> Here is the task, I just need to get the file from master, untar it and 
> execute a file.
>
> Step 1: 
>
> Working as a root user,having the default puppet.conf for root and the 
> agent could get the source file  from master , untar it and execute it.
>
> Step 2: 
>
> Moving to non-root user, I have a different puppet.conf with the conf the 
> master validates the agent and gets me the source , and untar it to the 
> agent , but on the agent side I got the error. 
>
>
> Here is my puppet.conf
>
> [main]
>     logdir = /home/user/var/log/puppet
>     rundir = /home/user/var/run/puppet
>     vardir = /home/user/var/lib/puppet
>     ssldir = $vardir/ssl
>  
>     server=puppetmaster.example.com
> [agent]
>     classfile = $vardir/classes.txt
>     localconfig = $vardir/localconfig
> [master]
>     certname=puppetmaster.example.com
>
> On executing, 
>
> puppet agent --confdir-/home/user/etc -t, 
>
> Error: Failed to set group to '0': Operation not permitted - 
> /home/user/unix.tar.gz
> Error: /File[/home/user/unix.tar.gz]/ensure: change from absent to file 
> failed: Failed to set group to '0': Operation not permitted - 
> /home/user/.tar.gz
>
> Though I set the tarball of the source in master to 777 permissions, I get 
> the same error.
>
> Your help is great appreciated, please let me know if you need any further 
> info.
>
>
This problem is not directly related to puppet.conf.  It is probably in 
issue in your init.pp file on the master (because that appears to be where 
you declare File[/home/user/unix.tar.gz]).  The manifest leads Puppet to 
believe that the target file is supposed to have group 0, but changing the 
downloaded file's group requires the agent to run as root.

If you post the declaration of that file, then we may be able to tell you 
more.

I have a question, though: what is the purpose of having this run by an 
unprivileged user in the first place?


John

-- 
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/-/m_CIZDBB3B0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to