help-cfengine
[Top][All Lists]
Advanced

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

Re: list item concatenation


From: John Sechrest
Subject: Re: list item concatenation
Date: Thu, 26 Feb 2004 20:05:12 -0800


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




reply via email to

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