Issue #4385 has been updated by Xavier Delaruelle. Status changed from Needs more information to Closed
I have installed 2.6.2rc1 and "confdir" and "vardir" are now finely set. So I close this ticket. ---------------------------------------- Bug #4385: vardir and confdir are set to '~' when running puppet master as non-root user through Passenger http://projects.puppetlabs.com/issues/4385 Author: Xavier Delaruelle Status: Closed Priority: Normal Assignee: Category: passenger Target version: Affected version: 2.6.0 Keywords: Branch: I am currently testing the new 2.6.0 release of puppet and I get a disappointing behavior when running the puppet master as non-root user in our apache/passenger setup: $confdir and $vardir are set to "~/.puppet". If I add `ARGV << "--genconfig"` to the config.ru, I find in Apache's logs: # The default value is '/var/lib/puppet/.puppet/var'. # vardir = /var/lib/puppet/.puppet/var # The default value is '/var/lib/puppet/.puppet'. # confdir = /var/lib/puppet/.puppet Our Passenger setup switches puppetmasterd instances to the puppet user: $ grep PassengerUserSwitching /etc/httpd/conf.d/passenger.conf PassengerUserSwitching on $ ls -l /var/www/rack/puppetmasterd/config.ru -rw-r--r-- 1 puppet puppet 477 Jul 28 10:52 /var/www/rack/puppetmasterd/config.ru Surprisingly, when I run puppet master directly under the puppet account I get the regular paths: $ su - puppet -c "puppet master --genconfig | egrep -B 1 -e '(vardir|confdir) ='" # The default value is '/etc/puppet'. # confdir = /etc/puppet # The default value is '/var/lib/puppet'. # vardir = /var/lib/puppet -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. 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-bugs?hl=en.
