Forum: Cfengine Help
Subject: Re: Cfengine Help: rather complex scenario (pkg install+configure - if
necessary)
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21559,21594#msg-21594
Off the top of my head.
Bundle 1 - install mpt-status
Using a classes promise check something under /proc to determine if an LSI card
is installed, setting a class. Use a package of files promise to intall what
you require.
Bundle 2 - require installation of a suitable MTA
Bundle 3 - configure postfix/exim/sendmail IF present
I do not recommend automatically determining whether or not promises like this
should be kept. This is something I would set in a classes bundle.
classes:
"postfix_mtas" or => { "hosta", "hostb", "hostc", "hostd" };
Later in another bundle
files:
postfix_mtas::
"/etc/postfix/main.cf"
yada yada
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine