Penguin
Blame: CFEngineNotes
EditPageHistoryDiffInfoLikePages
Annotated edit history of CFEngineNotes version 5, including all changes. View license author blame.
Rev Author # Line
4 AristotlePagaltzis 1 !!! [CFEngine] says "No preconfiguration file" even though I have one
1 PerryLorier 2
4 AristotlePagaltzis 3 You need to put <tt>cf.preconf</tt> in <tt>/var/cfengine</tt>, not <tt>/var/cfengine/inputs</tt> as you might think.
1 PerryLorier 4
4 AristotlePagaltzis 5 !!! I'm setting up groups in an <tt>import</tt>ed file and then trying to import files based on those groups
1 PerryLorier 6
4 AristotlePagaltzis 7 [CFEngine] will skip the group/class when parsing unless you add it with <tt>~AddInstallable</tt>.
1 PerryLorier 8
4 AristotlePagaltzis 9 !!! How do I write a config for a "block" based config file like <tt>/etc/pcmcia/wireless.opts</tt>?
10
11 We use:
12
13 <verbatim>
14 LocateLineMatching "case \"\$ADDRESS\" in "
15 BeginGroupIfNoLineMatching "\*,\*,\*,$(macAddrEth1)\)"
16 ResetSearch "1"
17 LocateLineMatching "case \"\$ADDRESS\" in"
18 InsertLine "*,*,*,$(macAddrEth1))"
19 InsertLine " IPADDR=\"$(ipAddrEth1)\""
5 PerryLorier 20 # etc ...
4 AristotlePagaltzis 21 EndGroup
22 </verbatim>