[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: action copy options
From: |
Bob Van Cleef |
Subject: |
Re: action copy options |
Date: |
Tue, 23 Jul 2002 10:03:33 -0700 (PDT) |
I think the real solution is to write a custom script
to do exactly what you want and then set a flag to run the script
when needed. That is what I do to handle shadow password files.
copy:
# bypass the master system
linux.!thea::
$(distrib)/x86/etc/passwd define=updateshadow
dest=/etc/passwd.new mode=0444 owner=root server=thea
shellcommands:
linux.updateshadow::
"/bin/cp /etc/passwd.new /etc/passwd"
"/usr/sbin/pwconv"
In his case, how about:
shellcommands:
clearhosts:
"/bin/rm /etc/hostname.*"
On Tue, 23 Jul 2002, Ted Zlatanov wrote:
> On Tue, 23 Jul 2002, Mark.Burgess@iu.hio.no wrote:
> > Then why not
> >
> > include=tot include=tutu
> >
> >
> > also?
> >
> >
> >> Your problem is that you want to delete only some files on the
> >> client side, and cfengine has no way of specifying that easily.
> >
> > I think it does - I think the docs on this could be better. But
> > try the above.
>
> I thought the problem was that the OP only wanted to delete hostname.*
> and leave everything else in /etc intact. That would require a huge
> include list, that's what I meant. A negative include
> (no-include=hostname.*) would solve the problem. But you're right,
> it's possible to do it with include= directives as well.
>
> Ted
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
>
--
><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><> ><>
Bob Van Cleef, System Administrator (408) 734-8100
MicroUnity, Inc. FAX (408) 734-8136
376 Martin Ave., Santa Clara, CA 95050 vancleef@microunity.com