help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: files actions


From: Chip Seraphine
Subject: Re: files actions
Date: Tue, 28 Sep 2004 16:46:42 -0500
User-agent: KMail/1.5.4

On Tuesday 28 September 2004 15:51, Ed Brown wrote:
> Hmmm, so NO easy answer I take it....

In situations like the one you describe below, I generally have two 
near-identical files: clauses, each with a different action (one for 'fixall' 
and one for 'create').  Obviously, put the 'create' first or you might get an 
extra error the first time it runs.



> 
> If you care enough to create a file, with particular permissions, if it
> doesn't exist, why wouldn't also want to verify the permissions on the
> existing file, or continue to verify, as the case may be?   Seems like
> an odd omission, one that I was surprised to find that neither 'fixall'
> or 'create' encompasses.   Touching a file every time cfengine runs is
> clearly not the right solution.
> 
> Any chance of addressing this in the future?
> 
> thanks,
> Ed
> 
> 
> On Tue, 2004-09-28 at 11:18, Ed Brown wrote:
> > There's probably an easy answer, but at the moment it is eluding me: how
> > can a file be both created if missing, and have its modes/ownership
> > verified?  action=create does one, action=fixall does the other,
> > action=touch gets close, but I don't want the file to be touched
> > (timestamp updated) every time cfagent runs.
> > 
> > thanks,
> > Ed
> > 
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://lists.gnu.org/mailman/listinfo/help-cfengine
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine
> 

-- 

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
chip@trdlnk.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]