help-cfengine
[Top][All Lists]
Advanced

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

Re: update.conf


From: Andy Mayhew
Subject: Re: update.conf
Date: Thu, 4 Apr 2002 13:38:09 -0800
User-agent: Mutt/1.2.5i

On Thu, Apr 04, 2002 at 01:03:16PM +0200, Richard Arends wrote:
> * cfengine server (run cfservd)
>       On the server several cf files (cf.users, cf.runscripts) And for
>       every host a directory (host1.domain.com) which beholds cf scripts for
>       that host only.

I used to do something similar, but for particular server applications where
my import statement might look like:
import:
  solaris_webserver:: $(CFINPUTS)/packages/cf.Apache_1_3_12_Solaris_sparc
  linux_webserver:: $(CFINPUTS)/packages/cf.Apache_1_3_12_Linux_i686
  
By extention you can combine Adrian's and Mark's suggestions:
classes:
  localhostonly = ( IfExists("/path/to/file/${host}") )
  
import:
  localhostonly::
    /path/to/file/${host}

I would agree with Mark, though, even with the "trusted" directories of 2.0,
just arbitrarily running all files in the CFINPUTS directory is probably bad
karma.

--Andy



reply via email to

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