Forum: Cfengine Help
Subject: Re: Cfengine Help: rather complex scenario (pkg install+configure - if 
necessary)
Author: ticketo
Link to topic: https://cfengine.com/forum/read.php?3,21559,21597#msg-21597


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" };


Under normal circumstances I would agree with this. However due to package 
dependencies a MTA is installed on Ubuntu 10.04 when installing "mpt-status" 
(mpt-status requires mailx, mailx is a virtual package provided by bsd-mailx, 
bsd-mailx requires mail-transfer-agent, postfix provides mail-transfer-agent). 
(These are hard dependencies, not just recommendations or suggestions.)

I just want to properly read raid controller settings on my hardware servers, 
but due to package policy I'm forced to install a full blown mta. If I'm forced 
to install a MTA, then at least I want to make sure it doesn't do anything bad 
- like providing an open relay.

So in effect the simple list of hosta ... hostd would result in listing every 
single server containing a LSI logic raid controller.


(Another way out of this mess would be tweak the package selection algorithm 
and prefer "heirloom-mailx" instead of "bsd-mailx", which only "suggests" a 
MTA, but doesn't actually require it. I'm probably going to take this route, 
but I may not always be this lucky.)

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

Reply via email to