help-cfengine
[Top][All Lists]
Advanced

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

Re: update.conf


From: Adrian Phillips
Subject: Re: update.conf
Date: 04 Apr 2002 14:51:45 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "Richard" == Richard Arends <richard@unixguru.nl> writes:

    Richard> Hello, I'm working out a cfengine solution for the
    Richard> company i work for. This is what i have in mind.

    Richard> * cfengine server (run cfservd) On the server several cf
    Richard> files (cf.users, cf.runscripts) And for every host a
    Richard> directory (host1.domain.com) which beholds cf scripts for
    Richard> that host only.

    Richard> * update.conf for hosts (clients) From cron every half
    Richard> hour cfagent -f update.conf. Clients gets the common cf
    Richard> files and his own cf files from his own directory on the
    Richard> server.

    Richard>    After running update.conf, the common cf files and the
    Richard> hosts own cf file(s) must be executed. The problem here
    Richard> is, that i don't want a static 'import' list, thus when a
    Richard> update.conf has ran i should 'see' what cf files are
    Richard> present and run these.

I don't know whether this will work but try :-

cfagent.conf :-

control:
   # Use find our anything else that takes your fancy
   imports = ( "exec /bin/find <patch to confs>/${host}" )

import:
   any::
       ${imports}

Then just run from cron :- CFINPUTS=<whereever> cfagent

this will automatically run update.conf then run cfagent.conf.

Alternatively if this doesn't work then make update.conf do what you
didn't want to do and build a cf.import using a shellcommand with just
an import section in it, then cfagent.conf can just have a single :-

import::
  any::
    cf.import

Sincerely,

Adrian Phillips

-- 
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now?  [OK]



reply via email to

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