Issue #3962 has been updated by Daniel Pittman.

Status changed from Accepted to Closed

After review, we are not actually going to fix this issue directly.  The 
behaviour of creating a Linux-like `/var/lib` directory just for Puppet is, 
honestly, pretty bad behaviour, and would likely end up with every packager for 
a non-Linux platform having to patch Puppet to get platform-compliant behaviour.

Instead, I filed #9407 to change the defaults to something sensible and 
platform-appropriate.  This is inheriting the priority of this ticket, and 
should give a much better overall result.

Beyond that, if folks want to use the current, nasty location without 
configuration then creating the directory in a wrapper script seems appropriate.

Eric, I know that isn't quite the answer you might have hoped for, but I hope 
that the ultimate solution is good?  Please, if not, let us know.
----------------------------------------
Bug #3962: 0.25.5 fails to start if /var/lib does not exist
https://projects.puppetlabs.com/issues/3962

Author: eric sorenson
Status: Closed
Priority: High
Assignee: 
Category: installation
Target version: 2.7.x
Affected Puppet version: 0.25.5
Keywords: mac
Branch: 


Due to #86 and the 0.25.4->0.25.5 move of $vardir from /var (which always 
exists on Unix) to /var/lib (which might or might not exist), puppetd now fails 
to start on OSes without a /var/lib. This broke out of the box for me on both 
OS X and Solaris machines.  The attached patch fixes the issue by adding a 
'varparentdir' resource which is conditional upon root/not root EUID as confdir 
and vardir are. I'm not sure this is the best way to go about it and will 
happily take improvements that address the issue.

before patch:
<pre>
err: /File[/var/lib/puppet]/ensure: change from absent to directory failed: 
Cannot create /var/lib/puppet; parent directory /var/lib does not exist
[ ... dependencies fail, startup aborts ... ]
</pre>

patched, as root:
<pre>
debug: /File[/var/lib]: Changing ensure
debug: /File[/var/lib]: 1 change(s)
debug: /File[/var/lib]/ensure: created
[ .. startup succeeds ... ]
</pre>

not as root:
<pre>
debug: /File[/Users/eric/.puppet]: Autorequiring File[/Users/eric]
[ no-op as this exists ]
[ ... startup succeeds ... ]
</pre>




-- 
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.

Reply via email to