You are viewing an old revision of this page.
Notes for CFEngine
CFEngine says "No preconfiguration file" even though I have a preconfiguration file?
You need to put cf.preconf in /var/cfengine not /var/cfengine/inputs as you might think.
I'm setting up groups in a imported file and then trying to import files based on those groups
You need to add the group/class with "AddInstallable?" otherwise CFengine will skip that when parsing.
How do I write a config for a "block" based config file like /etc/pcmcia/wireless.opts?
- we use
LocateLineMatching? "case \"\$ADDRESS\" in "
BeginGroupIfNoLineMatching? "\*,\*,\*,$(macAddrEth1)\)"
ResetSearch? "1"
LocateLineMatching? "case \"\$ADDRESS\" in"
InsertLine? ",,*,$(macAddrEth1))"
InsertLine? " IPADDR=\"$(ipAddrEth1)\""
etc...
EndGroup?