cfengine error during fai-based install

Martin Müller M.Mueller at klinik-michelsberg.de
Fri Jun 2 11:48:46 CEST 2006


Hi list

i a newbie in debian, fai and cfengine (formely suse, without wonderful fai and cfengine) and need now some hint to resolve this problem.

For setup my squid i use this cfengine config:

BeginGroupIfNoLineMatching "^acl proxy\_lan src 10.150.1.247"
 LocateLineMatching "^http\_access allow localhost"
 InsertLine "acl proxy_lan src 10.150.1.247"
 InsertLine "http_access allow proxy_lan"
EndGroup


During the install with fai, cfengine log this:

Edit: Search for ^acl proxy\_lan src 10.150.1.247 failed. Current line still 3
(Begin Group - no line matching ^acl proxy\_lan src 10.150.1.247)
Edit: Search for ^http\_access allow localhost failed. Current line still 3
cfengine: LocateLineMatchingRegexp failed in /tmp/target/etc/squid/squid.conf, aborting editing
cfengine: End editing /tmp/target/etc/squid/squid.conf
.....................................................................
cfengine: Edited file /tmp/target/etc/squid/squid.conf
SQUID/140-squid      OK.


But this is the same config when i start cfengine before the reboot:

demo:/etc/cfengine# cfengine -v -f /fai/scripts/SQUID/140-squid
....
....
Edit: Search for ^acl proxy\_lan src 10.150.1.247 failed. Current line still 1
(Begin Group - no line matching ^acl proxy\_lan src 10.150.1.247)
Edit: Search ended at line 1874
Edit: (Found http_access allow localhost)
Inserting acl proxy_lan src 10.150.1.247
Inserting http_access allow proxy_lan
(End Group)
cfengine: End editing /tmp/target/etc/squid/squid.conf
.....................................................................
cfengine: Edited file /tmp/target/etc/squid/squid.conf

Whats wrong ???

Install anyone cfengine2 with fai? the pre or post config-script gets an sed-editor error and the debconf settings will not correct apply.

Thanks

Martin



More information about the linux-fai mailing list