In puppetmaster behind apache/passenger setup, Can I move /etc/puppet/rack/ to /var/www/puppet for example? It seems that when I try, I get access denied errors, in apache log file: Could not prepare for execution: Got 1 failure(s) while initializing: change from absent to file failed: Could not set ''file on ensure: Permission denied - /var/lib/puppet/log/masterhttp.log Thanks, Mohamed. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Thu, Jan 27, 2011 at 1:16 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote:> In puppetmaster behind apache/passenger setup, Can I move > /etc/puppet/rack/ to /var/www/puppet for example?Sure. You just need to be aware of file permissions.> It seems that when I try, I get access denied errors, in apache log file:Yup, file permissions. =) Passenger sheds root privileges and becomes the account owning the config.ru file. You should run the puppet master as the account "puppet" so config.ru should be owned by puppet. Please make sure the puppet master process is running under the account you expect and the files you''re getting permission denied errors on are accessible by that account.> Could not prepare for execution: Got 1 failure(s) while initializing: > change from absent to file failed: Could not set ''file on ensure: > Permission denied - /var/lib/puppet/log/masterhttp.log > > Thanks, > Mohamed.Hope this helps, -- Jeff McCune http://www.puppetlabs.com/ -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Excellent. Thanks a lot for the explanation. On Thu, Jan 27, 2011 at 6:23 PM, Jeff McCune <jeff@puppetlabs.com> wrote:> On Thu, Jan 27, 2011 at 1:16 PM, Mohamed Lrhazi <lrhazi@gmail.com> wrote: >> In puppetmaster behind apache/passenger setup, Can I move >> /etc/puppet/rack/ to /var/www/puppet for example? > > Sure. You just need to be aware of file permissions. > >> It seems that when I try, I get access denied errors, in apache log file: > > Yup, file permissions. =) > > Passenger sheds root privileges and becomes the account owning the > config.ru file. You should run the puppet master as the account > "puppet" so config.ru should be owned by puppet. > > Please make sure the puppet master process is running under the > account you expect and the files you''re getting permission denied > errors on are accessible by that account. > >> Could not prepare for execution: Got 1 failure(s) while initializing: >> change from absent to file failed: Could not set ''file on ensure: >> Permission denied - /var/lib/puppet/log/masterhttp.log >> >> Thanks, >> Mohamed. > > Hope this helps, > -- > Jeff McCune > http://www.puppetlabs.com/ > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.