On Jun 9, 2010, at 4:31 AM, Eric Sorenson wrote:
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:49000000000 -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``."]
)
Man I hate this stuff. Just running a process consistently but with
local preferences is so complicated on Unix. :/
Is it reasonable to use /var/lib/puppet/ on OS X and Solaris? Or
should we be localizing the value here?
Yet more evidence that this kind of thing shouldn't change in point
releases. :/
--
The ships hung in the sky in much the same way that bricks don't.
-- Douglas Adams
---------------------------------------------------------------------
Luke Kanies -|- http://puppetlabs.com -|- +1(615)594-8199
--
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.