Hi, I tried updating today to 0.25.5 and ran into a problem where startup 
failed on my OSX and Solaris 10 hosts because the new location of $vardir, 
/var/lib doesn't exist on those systems.  I attached a patch to the redmine bug 
I created (#3962) and am also pasting it below for further discussion as its 
quite simple. 

diff -ur puppet-0.25.5/lib/puppet/defaults.rb 
puppet-0.25.5.eric/lib/puppet/defaults.rb
--- puppet-0.25.5/lib/puppet/defaults.rb        2010-05-17 17:40:49.000000000 
-0700
+++ puppet-0.25.5.eric/lib/puppet/defaults.rb   2010-06-09 01:21:43.000000000 
-0700
@@ -13,10 +13,12 @@
     if name != "puppetmasterd" and Puppet::Util::SUIDManager.uid != 0
         conf = File.expand_path("~/.puppet")
         var = File.expand_path("~/.puppet/var")
+        varparent = File.expand_path("~/")
     else
         # Else, use system-wide directories.
         conf = "/etc/puppet"
         var = "/var/lib/puppet"
+        varparent = "/var/lib"
     end
 
     self.setdefaults(:main,
@@ -24,6 +26,7 @@
         is runnig as root or the user that ``puppetmasterd`` is supposed to 
run as, it defaults to a system directory, but if it's running as any other 
user,
         it defaults to being in ``~``."],
         :vardir => [var, "Where Puppet stores dynamic and growing data.  The 
default for this parameter is calculated specially, like `confdir`_."],
+        :varparentdir => [varparent, "If needed, this resource will create 
`vardir`_'s parent directory automatically."],
         :name => [name, "The name of the service, if we are running as one.  
The
             default is essentially $0 without the path or ``.rb``."]
     )

--
You received this message because you are subscribed to the Google Groups "Puppet 
Developers" 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-dev?hl=en.

Reply via email to