Le 6023 Septembre 1993, daniel klein a envoyé:

Hello,

> Only one set of promises is ever run.  By default that comes from promises.cf,
> but you can specify an alternative set with -f.  Those promises can consist
> of many other files, which you list in the inputs.  Regardless of which files
> are included, the agent only runs the promises listed in the bundlesequence
> (and there is only one bundlesequence).
>
> So what you created was a standalone set of promises (with one promise), and
> a bundlesequence saying "run that one promise bundle).
>
> If you want to include that new set of promises into the "main" set of
> promises in promises.cf, you add "tester" to the bundlesequence in 
> promises.cf,
> add test.cf to your list of inputs, and delete (or comment out) the body
> common control in test.cf (because like Highlander, there can be only one!)

With cf2 I used to include more files depending on classes:

cfagent.conf contains:

import:
    debian:: cf.debian # debian specific configuration

    any::
        cf.services

cf.services contains:

import:

    SSHServer:: cf.ssh
    NTPClient:: cf.ntp

I find no import in cf3 reference manual.

What's the way to include files based on classes?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1

Attachment: pgpabLxyj1uSY.pgp
Description: PGP signature

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

Reply via email to