Annotated edit history of
CFEngineNotes version 5 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
1 |
PerryLorier |
1 |
!!! [CFEngine] says "No preconfiguration file" even though I have one |
|
|
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 |
|
|
|
7 |
[CFEngine] will skip the group/class when parsing unless you add it with <tt>~AddInstallable</tt>. |
|
|
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)\"" |
|
|
20 |
# etc ... |
|
|
21 |
EndGroup |
|
|
22 |
</verbatim> |