[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug with resolve directive?
From: |
khalid . sattar |
Subject: |
Bug with resolve directive? |
Date: |
Fri, 11 Jul 2003 16:54:46 +0100 |
Just put up cfengine 2.0.7p3 and noticed problems with resolve directive
Its does not honour entries that don't begin with digits. eg If I have
control:
site = ( cam )
domain = ( cam.harlequin.co.uk )
actionsequence = ( resolve )
resolve:
172.16.16.8
192.88.238.193
193.128.4.68
"options ndots:2"
Then it does not seem to add the options line. If however I leave out
the quotes, then I get a resolv.conf file that looks like
domain cam.harlequin.co.uk
nameserver 172.16.16.8
nameserver 192.88.238.193
nameserver 193.128.4.68
options
ndots:2
OK so I can use editfiles to add this but that is also giving me grief
since I also want to add a "search" directive in the file, if I add this
using editfiles, then I think at the next run resolve removes lines
starting with "search", and editfiles adds it, so /etc/resolv.conf gets
edited as every run, here is sample config that exhibits that behaviour
control:
site = ( cam )
domain = ( cam.harlequin.co.uk )
actionsequence = ( resolve editfiles )
resolve:
172.16.16.8
192.88.238.193
193.128.4.68
editfiles:
{ /etc/resolv.conf
AppendIfNoSuchLine "search $(domain) harlequin.com"
AppendIfNoSuchLine "options ndots:2"
}
What I want to endup with is
domain cam.harlequin.co.uk
nameserver 172.16.16.8
nameserver 192.88.238.193
nameserver 193.128.4.68
options ndots:2
search cam.harlequin.co.uk harlequin.com
I don't mind if the domain line is there or not.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug with resolve directive?,
khalid . sattar <=