Am 29.10.2015 um 14:41 schrieb Wei Chen:
> [workspace] $ /bin/sh -xe /tmp/hudson50649338283499454.sh
> + puppet agent -t
>  [1;35merr: /File[/home/jenkins/.puppet]/ensure: change from absent to 
> directory failed: Cannot create /home/jenkins/.puppet; parent directory 
> /home/jenkins does not exist [0m

If the puppet agent doesn't run as root, it creates a data folder under
$HOME/.puppet. If $HOME doesn't exist, .puppet can't be created.

However, it doesn't make much sense to run the puppet agent as non-root
user (it won't be able to install any package, for example), so what you
would likely want to do is setup sudo so that the user "jenkins" can
execute "puppet agent -t" (and only this) as root w/o providing a
password, then call "sudo puppet agent -t".

See "man sudoers" for details.

HTH...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: [email protected] <mailto:[email protected]>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/563226F5.1080005%40recommind.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to