help-cfengine
[Top][All Lists]
Advanced

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

Re: list item concatenation


From: Mark . Burgess
Subject: Re: list item concatenation
Date: Sun, 29 Feb 2004 21:32:01 +0100 (MET)

Realy - I tested this before putting it out. You msut be doing something
wrong. Try this:

control:

  Split = ( "," )
  hostlist = ( "10.10.10.1,10.10.10.2,10.10.10.3" )
  dirs =  ( "bin,etc,lib" )
  base = ( /usr )



#########################################################

admit:

   $(base)/$(dirs)   $(hostlist)


ACCESS GRANTED ----------------------:

Path: /usr/bin (encrypt=0)
   Admit: 10.10.10.3 root=
   Admit: 10.10.10.2 root=
   Admit: 10.10.10.1 root=
Path: /usr/etc (encrypt=0)
   Admit: 10.10.10.3 root=
   Admit: 10.10.10.2 root=
   Admit: 10.10.10.1 root=
Path: /usr/lib (encrypt=0)
   Admit: 10.10.10.3 root=
   Admit: 10.10.10.2 root=
   Admit: 10.10.10.1 root=


On 29 Feb, Lev Lvovsky wrote:
> sadly, same results:
> 
> Try  
> FuzzySetMatch(tsthvy1-db1.domain.com:tsthvy1- 
> db2.domain.com,10.176.110.101)
> cfservd: Mixture of IPv6 and IPv4 addresses:  
> tsthvy1-db1.domain.com:tsthvy1-db2.domain.com
> 
> -lev
> 
> On Feb 28, 2004, at 10:30 AM, Mark.Burgess@iu.hio.no wrote:
> 
>>
>> That's odd, I made that modification a while ago, but I guess that
>> I had not released it. Anyway you can get 2.1.4b1 from ftp.iu.hio.no
>> that will work.
>>
>> M
>>
>> On 27 Feb, Lev Lvovsky wrote:
>>> so I think I've excluded the package from being the culprit in this,  
>>> as
>>> three different RPMs exhibit the same issue.
>>>
>>> I think that problem is that it's not splitting the list at the ":".
>>> The source shows that ":" is the default char to split on, but even
>>> defining it in the cfservd.conf has no effect.  The behavior of  
>>> cfservd
>>> however, is that it seems to be ignoring the ":" as a special
>>> character.
>>>
>>> The following two configurations net the same results:
>>>
>>> ------
>>> admit:
>>>
>>>    ops_distro::
>>>      /tmp/test tsthvy1-db1.domain.com:tsthvy1-db2.domain.com
>>> ------
>>>
>>> control:
>>>
>>>    ...
>>>    list = ( tsthvy1-db1.domain.com:tsthvy1-db2.domain.com )
>>>
>>> admit:
>>>
>>>    ops_distro::
>>>      /tmp/test $(list)
>>> ------
>>>
>>> which is the following:
>>>
>>> cfservd: Mixture of IPv6 and IPv4 addresses:
>>> tsthvy1-db1.domain.com:tsthvy1-db2.domain.com
>>>
>>> I've gone so far as to setup a local DNS server on the cfservd box in
>>> order to get rid of the dashes, but the same issue comes up.
>>>
>>> If there's anyone willing to do something specifically similar to the
>>> admit thing that I'm doing, and send me the output, I would be
>>> grateful.  I'm sure it's just something small that I'm missing.
>>>
>>> Thanks!!!
>>> -lev
>>>
>>>
>>> On Feb 26, 2004, at 8:05 PM, John Sechrest wrote:
>>>
>>>>
>>>>
>>>> You are right.
>>>>
>>>> I just ran:
>>>>
>>>> control:
>>>>    split = ( ${n} )
>>>> #   packagestohave = ( ReadFile(/var/mln/packagelist,4000) )
>>>>   packagestohave = ( csh:tcsh )
>>>> shellcommands:
>>>>
>>>>    any::
>>>>
>>>>    "/usr/bin/apt-get install ${packagestohave}"
>>>>
>>>>
>>>> -----
>>>>  (replacing the readfile with an explicit list)
>>>>
>>>> and the syntax above worked
>>>>
>>>>
>>>>
>>>>
>>>> Lev Lvovsky <lists1@sonous.com> writes:
>>>>
>>>>  % That wouldn't (at least readily), explain why I don't have this
>>>> problem
>>>>  % with only one element in the list (which does have the dashes).   
>>>> Any
>>>>  % chance you could post a working example list of this form?  I'd
>>>> like to
>>>>  % see the debug output on something that's known to work.
>>>>  %
>>>>  % The debug output wherein it complains about improper IPv6  
>>>> addresses
>>>> is
>>>>  % especially frsutrating (in my post from yesterday).
>>>>  %
>>>>  % thanks for the help,
>>>>  % -lev
>>>>  %
>>>>  %
>>>>  % On Feb 26, 2004, at 6:52 PM, John Sechrest wrote:
>>>>  %
>>>>  % >
>>>>  % > Do we have the problem with "-" in the names of things for this
>>>> too?
>>>>  % >
>>>>  % > I have used lists and they have worked, so there is something
>>>>  % > simple here.
>>>>  % >
>>>>  % >
>>>>  % >
>>>>  % >
>>>>  % > Lev Lvovsky <lists1@sonous.com> writes:
>>>>  % >
>>>>  % >  % Sadly no, that results in parse errors (fatal ones).
>>>>  % >  %
>>>>  % >  % -lev
>>>>  % >  %
>>>>  % >  %
>>>>  % >  % On Feb 26, 2004, at 6:29 PM, John Sechrest wrote:
>>>>  % >  %
>>>>  % >  % >
>>>>  % >  % >
>>>>  % >  % > Lev Lvovsky <lists1@sonous.com> writes:
>>>>  % >  % >
>>>>  % >  % >
>>>>  % >  % >  % however, changing smart_list to something with more than
>>>> one
>>>>  % > item
>>>>  % >  % >  % (leaving everything else the same):
>>>>  % >  % >
>>>>  % >  % >  %    smart_list = (
>>>>  % >  % > tsthvy1-smarthost.domain.com:tsthvy1-db1.domain.com )
>>>>  % >  % >
>>>>  % >  % >  % results in all sorts of parsing errors when a connection
>>>> is
>>>>  % >  % > attempted:
>>>>  % >  % >
>>>>  % >  % >
>>>>  % >  % > Isn't the syntax for a list:
>>>>  % >  % >
>>>>  % >  % > smart_list =
>>>> tsthvy1-smarthost.domain.com:tsthvy1-db1.domain.com
>>>>  % >  % >
>>>>  % >  % >
>>>>  % >  % >
>>>>  % >  % >
>>>>  % >  % > -----
>>>>  % >  % > John Sechrest          .         Helping people use
>>>>  % >  % >                         .           computers and the
>>>> Internet
>>>>  % >  % >                           .            more effectively
>>>>  % >  % >                              .
>>>>  % >  % >                                  .       Internet:
>>>>  % > sechrest@peak.org
>>>>  % >  % >                                       .
>>>>  % >  % >                                               .
>>>>  % >  % > http://www.peak.org/~sechrest
>>>>  % >
>>>>  % > -----
>>>>  % > John Sechrest          .         Helping people use
>>>>  % >                         .           computers and the Internet
>>>>  % >                           .            more effectively
>>>>  % >                              .
>>>>  % >                                  .       Internet:
>>>> sechrest@peak.org
>>>>  % >                                       .
>>>>  % >                                               .
>>>>  % > http://www.peak.org/~sechrest
>>>>  %
>>>>  %
>>>>  %
>>>>  % _______________________________________________
>>>>  % Help-cfengine mailing list
>>>>  % Help-cfengine@gnu.org
>>>>  % http://mail.gnu.org/mailman/listinfo/help-cfengine
>>>>
>>>> -----
>>>> John Sechrest          .         Helping people use
>>>>                         .           computers and the Internet
>>>>                           .            more effectively
>>>>                              .
>>>>                                  .       Internet: sechrest@peak.org
>>>>                                       .
>>>>                                               .
>>>> http://www.peak.org/~sechrest
>>>
>>>
>>>
>>> _______________________________________________
>>> Help-cfengine mailing list
>>> Help-cfengine@gnu.org
>>> http://mail.gnu.org/mailman/listinfo/help-cfengine
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
>> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine



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





reply via email to

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