On Fri, Dec 14, 2012 at 5:42 PM, Jagga Soorma <jagg...@gmail.com> wrote: > Thanks for your reply Matthew. I changed that line to the following: > > /usr/bin/puppet parser validate $tmpfile >> /tmp/puppet-val.log > 2>&1 > > Here is what the log is capturing (problem with the environment?): > > -- > simran@shinda:/var/tmp/puppet/puppet/manifests$ svn ci -m 'testing' nodes.pp > > ..snip.. > Sending nodes.pp > Transmitting file data .svn: Commit failed (details follow): > svn: Commit blocked by pre-commit hook (exit code 1) with output: > Puppet syntax error in manifests/nodes.pp > > [root@ssfpuppetd01 hooks]# cat /tmp/puppet-val.log > Error: Could not intialize global default settings: couldn't find HOME > environment -- expanding `~/.puppet'
OK. Subversion calls hook scripts with an empty environment for security reasons. See http://svnbook.red-bean.com/en/1.7/svn.reposadmin.create.html#svn.reposadmin.create.hooks. So, your hook script is going to have to set HOME itself. Regards, Matt. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.