help-cfengine
[Top][All Lists]
Advanced

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

Re: list item concatenation


From: Lev Lvovsky
Subject: Re: list item concatenation
Date: Fri, 27 Feb 2004 17:46:18 -0800

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 <address@hidden> 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 <address@hidden> writes:
 % >
 % >  % Sadly no, that results in parse errors (fatal ones).
 % >  %
 % >  % -lev
 % >  %
 % >  %
 % >  % On Feb 26, 2004, at 6:29 PM, John Sechrest wrote:
 % >  %
 % >  % >
 % >  % >
 % >  % > Lev Lvovsky <address@hidden> 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:
 % > address@hidden
 % >  % >                                       .
 % >  % >                                               .
 % >  % > http://www.peak.org/~sechrest
 % >
 % > -----
 % > John Sechrest          .         Helping people use
 % >                         .           computers and the Internet
 % >                           .            more effectively
 % >                              .
% > . Internet: address@hidden
 % >                                       .
 % >                                               .
 % > http://www.peak.org/~sechrest
 %
 %
 %
 % _______________________________________________
 % Help-cfengine mailing list
 % address@hidden
 % http://mail.gnu.org/mailman/listinfo/help-cfengine

-----
John Sechrest          .         Helping people use
                        .           computers and the Internet
                          .            more effectively
                             .
                                 .       Internet: address@hidden
                                      .
. http://www.peak.org/~sechrest





reply via email to

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