Forum: CFEngine Help
Subject: Class exclusion/inclusion problem with 'common' bundle.
Author: mjtice
Link to topic: https://cfengine.com/forum/read.php?3,22984,22984#msg-22984
Hello,
Using CF V2.2.10 I'm running into some problems when trying to 'exclude' some
classes from a 'common' bundle.
Here's an overview of my setup:
within cf.main:
import:
..snip..
## catchall
any:: imports/common
within imports/common:
control:
actionsequence = ( methods )
methods:
## cfengine init script
cfengineInit($(filehost)) action=cfengineInit.cf
server=localhost
## SoX/PCI compliance
tripwire($(filehost)) action=tripwire.cf
server=localhost
## syslog
syslog($(filehost)) action=syslog.cf
server=localhost
## cron
crontab($(filehost)) action=crontab.cf
server=localhost
## check disk space
checkdisk(null) action=checkdisk.cf
server=localhost
## manage openssh
sshd($(filehost)) action=sshd.cf
server=localhost
## snmp
snmp($(filehost)) action=snmp.cf
server=localhost
## manage the /etc/bashrc file
bashrc($(filehost)) action=bashrc.cf
server=localhost
###
Now, everything is just fine as-is. However, if I try to exclude a class
(e.g.):
## snmp
!flux01.stage::
snmp($(filehost)) action=snmp.cf
server=localhost
it will skip that particular method, but it will also (apparently) randomly
skip other methods within this 'common' bundle. I thought I could just
"re-enable" that class (e.g.):
## snmp
!flux01.stage::
snmp($(filehost)) action=snmp.cf
server=localhost
flux01.stage::
But that doesn't appear to work (I'm sure I mis-read something regarding that,
though). I've tried putting any exclusions at the bottom of the bundle - but
1) I'm not convinced that works properly, and 2) as my exclusions grow this
isn't practical. I'm at the point where I may just get rid of this 'common'
bundle and place each individual piece inside the class-specific bundle.
However, I thought I'd post here to see if anyone has any ideas.
Thanks.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine