help-cfengine
[Top][All Lists]
Advanced

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

Re: iterators in copy::


From: John Sechrest
Subject: Re: iterators in copy::
Date: Mon, 02 Feb 2004 05:55:22 -0800


Adrian Phillips <address@hidden> writes:


 %     John>  However, this ends up copying large pieces of /etc into the
 %     John> directory.

 % What do you mean ? I thought include excluded everything else ?

These are the files that I found in my directory:

alternatives       cron.daily    groff        network  rc1.d  rcS.d
apt                cron.monthly  init.d       opt      rc2.d  security
bash_completion.d  cron.weekly   jed-init.d   pam.d    rc3.d  skel
calendar           default       ldap         ppp      rc4.d  ssh
chatscripts        dpkg          logrotate.d  rc.boot  rc5.d  ssl
cron.d             exim          modutils     rc0.d    rc6.d  terminfo


When I copied just /etc/hosts.allow, hosts.deny, inetd.conf

Here is the relevant part of the script:

    Split = ( : )
    Actionsequence = ( control copy )
    files = ( /etc/hosts.allow:/etc/hosts.deny:/etc/inetd.conf )

copy: 
   any::
      /etc    dest=/tmp/x
                  include=$(files)
                   mode=644
                   recurse=1
                   owner=root
                   group=root
                   type=checksum

           


-----
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]