bug-cfengine
[Top][All Lists]
Advanced

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

Re: filters and tidy


From: Mark . Burgess
Subject: Re: filters and tidy
Date: Sun, 7 Jan 2001 10:00:08 +0100 (MET)

On  6 Jan, Robert Shaw wrote:
> 
> Mark,
> 
> I did some more investigating and I found out that it's not tidying 
> any links that link to a directory. How do I make it remove those 
> links too?? I want to match any link (regardless of what it points 
> to) and remove it.
> 
> Any ideas? Below is a tree of the testcase I'm using. The output, and 
> a debug output.
> 
> Thanks!
> -Robert


This is a feature. You need to set dirlinks=true if you
want to change the structure of the file tree.

Mark


> 
> =-=-=-=-=-=-=-=
> 
>>  tree .
> .
> |-- crontab.txt
> |-- dirlink1 -> /etc/inet
> |-- dirlink2 -> /etc/mail
> |-- filelink1 -> /etc/inet/services
> |-- filelink2 -> /etc/inet/inetd.conf
> |-- inputs -> /home/rshaw/src/arizona/hostcfg/cfengine/inputs
> `-- sbin
>      |-- cfd
>      |-- cfengine
>      |-- cfmail
>      |-- cfnormal
>      |-- cfupdate
>      |-- cfwrap
>      `-- rsync
> 
> =-=-=-=-=-=-=-=
> 
>>  sudo sbin/cfupdate -n
> cf:arizona2: want to delete /etc/cfengine/filelink1
> cf:arizona2: want to delete /etc/cfengine/filelink2
> 
> =-=-=-=-=-=-=-=
> 
>>  sudo sbin/cfupdate -n -d3 -v
> Reference time set to Sat Jan  6 17:40:51 2001
> 
> GNU Configuration Engine -
> 1.6.1p2
> Free Software Foundation 1995-2000
> Donated by Mark Burgess, Faculty of Engineering,
> Oslo University College, 0254 Oslo, Norway
> 
> ------------------------------------------------------------------------
> 
> Host name is: arizona2
> Operating System Type is sunos
> Operating System Release is 5.6
> Architecture = sun4u
> 
> 
> Using internal soft-class solaris for host arizona2
> 
> The time is now Sat Jan  6 17:40:51 2001
> 
> 
> ------------------------------------------------------------------------
> 
> Additional hard class defined as: 32_bit
> Additional hard class defined as: sunos_5_6
> Additional hard class defined as: sunos_sun4u
> Additional hard class defined as: sunos_sun4u_5_6
> Additional hard class defined as: sparc
> Additional hard class defined as: sunos_sun4u_5_6_Generic_105181_10
> 
> GNU autoconf class from compile time: solaris2.6
> 
>    Careful with this - it might not be correct at run time if you have
>    several OS versions with binary compatibilty!
> 
> Address given by nameserver: 11.6.6.12
> arizona2: No preconfiguration file
> Accepted domain name: mydomain.com
> 
> 
> Defined Classes = ( any opt_dry_run opt_debug Saturday Hr17 Min40 
> Min40_45 Day6 J
> anuary Yr2001 solaris arizona2 undefined_domain 32_bit sunos_5_6 
> sun4u sunos_sun4
> u sunos_sun4u_5_6 sparc sunos_sun4u_5_6_Generic_105181_10 solaris2_6 
> 11_6_6 11_6_
> 6_12 arizona2_mxim_com arizona2_mydomain_com )
> 
> Negated Classes = ( )
> 
> Installable classes = ( )
> Patterns to exclude from copies: = (.*.swp *,v core *% *~ )
> 
> Global expiry time for locks: 120 minutes
> 
> Global anti-spam elapse time: 0 minutes
> 
> Extensions which should not be directories = ( )
> Suspicious filenames to be warned about = ( )
> 
> Fully qualified hostname is: arizona2.mydomain.com
> Unqualified hostname is: arizona2
> 
> System administrator mail address is:
> Sensible size = 1000
> Sensible count = 2
> Edit File (Max) Size = 10000
> 
> ------------------------------------------------------------
> 
> DEFINED INTERFACES
> 
> ------------------------------------------------------------
> 
> Defined Binservers = ( arizona2 )
> ------------------------------------------------------------
> 
> Defined home servers = ( )
> ------------------------------------------------------------
> 
> Defined wildcards to match home directories = ( )
> ------------------------------------------------------------
> 
> Action sequence = (directories tidy )
> 
> Will need to copy from the following trusted sources = ( )
> 
> Using mailserver
> 
> Local mountpoints:
> 
> Default route for packets
> 
> 
> File repository = /var/cfengine/spool
> 
> 
> Net interface name = le0
> ------------------------------------------------------------
> 
> DEFINED NAMESERVERS
> 
> ------------------------------------------------------------
> 
> DEFINED REQUIRE
> 
> ------------------------------------------------------------
> 
> DEFINED MOUNTABLES
> 
> ------------------------------------------------------------
> 
> DEFINED MISC MOUNTABLES
> 
> ------------------------------------------------------------
> 
> DEFINED UNMOUNTS
> 
> ------------------------------------------------------------
> 
> DEFINED DIRECTORIES
> 
> /var/cfengine/locks
>   +700
>   -7077
>   fixdirs
>   recurse=0
>   uids = ( 0 )
>   gids = ( 3 )
> 
>   Define
>   ElseDefine
> /var/cfengine/logs
>   +755
>   -7022
>   fixdirs
>   recurse=0
>   uids = ( 0 )
>   gids = ( 3 )
> 
>   Define
>   ElseDefine
> /var/cfengine/spool
>   +755
>   -7022
>   fixdirs
>   recurse=0
>   uids = ( 0 )
>   gids = ( 3 )
> 
>   Define
>   ElseDefine
> ------------------------------------------------------------
> 
> DEFINED IMPORTS
> 
> ------------------------------------------------------------
> 
> DEFINED FILES
> 
> ------------------------------------------------------------
> 
> DEFINED ACCESS CONTROL LISTS
> 
> ------------------------------------------------------------
> 
> DEFINED FILTERS
> 
> badlinks :
>   (Result) [Type]
>   (Type) [link]
> ------------------------------------------------------------
> 
> DEFINED IGNORE
> 
> CVS
> ------------------------------------------------------------
> 
> DEFINED FILE EDITS
> 
> ------------------------------------------------------------
> 
> DEFINED PROCESSES
> 
> )
> ------------------------------------------------------------
> 
> DEFINED FILE IMAGES
> 
> ------------------------------------------------------------
> 
> DEFINED TIDY MASKS
> 
> /etc/cfengine
>      pat=*, a-age=0, size=0, linkdirs=k, rmdirs=f, travlinks=F compress=f
>         Define
>         ElseDefine
>   Filter badlinks
>         recurse=inf
> ------------------------------------------------------------
> 
> DEFINED DISABLE
> 
> ------------------------------------------------------------
> 
> DEFINED LINKS
> 
> ------------------------------------------------------------
> 
> DEFINED CHILD LINKS
> 
> ------------------------------------------------------------
> 
> DEFINED SHELLCOMMANDS
> 
> ------------------------------------------------------------
> 
> Ignoring locks...
> cfengine -n: Running in ``All talk and no action'' mode
> Reference time set to Sat Jan  6 17:40:51 2001
> 
> ---------------------------------------------------------------------
> Checking directories:
> ---------------------------------------------------------------------
> 
> MakePath(/var/cfengine/locks)
> MakePath(/var/cfengine/logs)
> MakePath(/var/cfengine/spool)
> ---------------------------------------------------------------------
> Tidying by directory
> ---------------------------------------------------------------------
> 
> Directory /etc/cfengine
> cf:arizona2: want to delete /etc/cfengine/filelink1
> cf:arizona2: want to delete /etc/cfengine/filelink2
> No home patterns to search

-- 


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





reply via email to

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