Forum: CFEngine Help
Subject: Re: Error creating a directory (use forcedirs=true)
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,24130,24136#msg-24136

Bill,

1. Like you, I don't see any mention of "forcedirs" in the reference manual.  
(I'm viewing in a browser the online version 
http://cfengine.com/manuals/cf3-reference.html (which admittedly is more 
"bleeding edge" than those associated with particular distributions), and don't 
seem able to find it.  So I suspect that the error message is poor.  I would 
recommend you to open a bug report at the cfengine bugtracker: 
https://cfengine.com/bugtracker/ .

2. I would still recommend, as good practice for the future, that you declare 
your auto-create directories with the trailing "slash-dot" syntax: 
"/home/rsync/." and "/home/rsync/.ssh/.".  This is the recommendation in 
section 7.4.4. ("create") section of the reference manual.

3. "move_obstructions".  I hadn't seen this option before.  (I have several 
years experience with cfengine-2, but only a few months with cfengine-3.).  But 
I'm not sure how good a match it is for your present intentions.  Your initial 
report was about creating directories, with the implication (I may be wrong) 
that this would be in a clean, "green field" site.  By contrast, the 
description of "move_obstructions" seems to about about working in a dirty, 
"brown-field" site, where you expect to have to do some clearance and 
demolition first.  So, at this stage in the game, in that particular "expected 
green-field" case, my personal preference would be to keep it simple, avoiding 
(for the moment, at least) "move_obstructions", because that ought not to be 
necessary.  Then, only if you find your site is dirtier than expected, begin to 
consider such things.  (As I say, that is a personal opinion; others may well 
recommend differently; the course you take would depend on you local c
 ircumstances and experience.)

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to