Issue #3962 has been updated by Charlie Sharpsteen.

Keywords changed from mac to mac customer

----------------------------------------
Bug #3962: 0.25.5 fails to start if /var/lib does not exist
https://projects.puppetlabs.com/issues/3962#change-88790

* Author: eric sorenson
* Status: Closed
* Priority: High
* Assignee: 
* Category: installation
* Target version: 
* Affected Puppet version: 0.25.5
* Keywords: mac customer
* 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to