help-cfengine
[Top][All Lists]
Advanced

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

Iterators in copy:


From: John Gray
Subject: Iterators in copy:
Date: Thu, 22 Apr 2004 11:38:48 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040207)

It seems to me that it would be very useful to be able to mention an iterator more then once in a statement. For instace, I'd like to be able do each of the following:

control:
     lista = ( file1:file2:file3:file4 )
     listb = ( filea:fileb:filec:filed )

copy:
     $(mf)${lista}
          dest=${lista}
          mode=644
          owner=root
          group=root
          type=checksum
          server=$(policyhost)

     $(mf)${listb}.${host}
          dest=${listb}
          mode=644
          owner=root
          group=root
          type=checksum
          server=$(policyhost)


Is there a trick to make this work? Something like assigning the iterator to another variable and using it in the statement?

This sure would reduce the complexity of my config files.

Right now there's a stanze for each of file1-file4, and filea-filed.

Thanks,

John


--
John Gray                           gray@agora-net.com
AgoraNet, Inc.                      (302) 224-2475
102 E. Main Street, Suite 303       (302) 224-2552 (fax)
Newark, De 19711                    http://www.agora-net.com




reply via email to

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