bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug with resolve directive?


From: Mark . Burgess
Subject: Re: Bug with resolve directive?
Date: Mon, 3 Nov 2003 23:17:37 +0100 (MET)

You need to use 2.1.0 !

M


On 27 Oct, address@hidden wrote:
> Hello
> 
> I posted this in July of thsi year but dont recall any responces( probably 
> becuase it was sent late friday afternnon), so I thought I give it another 
> shot.
> 
> --------------------------------------------------------------------------------------------------------------
> 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.
> 
> 
> 
> _______________________________________________
> Bug-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]