[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request
From: |
Brendan Strejcek |
Subject: |
Re: feature request |
Date: |
Wed, 19 Oct 2005 13:42:17 -0500 |
User-agent: |
Mutt/1.5.6+20040818i |
Martin, Jason H wrote:
> Also, I'd suggest moving that test into a class definition using
> ReturnsZero; its not really a 'shellcommand' action.
Yeah, I had a good reason for doing it that way, but I can't remember
what it was now. :-) I think it might have confused the parser with the
parens, or maybe the $ or ${dollar} needed for the Perl variables didn't
work correctly inside ReturnsZero.
Best,
Brendan
--
Senior System Administrator
The University of Chicago
Department of Computer Science
http://www.cs.uchicago.edu/people/brendan
>
> -Jason Martin
>
>
> > -----Original Message-----
> > From:
> > help-cfengine-bounces+jason.h.martin=cingular.com@gnu.org
> > [mailto:help-cfengine-bounces+jason.h.martin=cingular.com@gnu.
> > org] On Behalf Of Brendan Strejcek
> > Sent: Wednesday, October 19, 2005 9:20 AM
> > To: help-cfengine@gnu.org
> > Subject: feature request
> >
> >
> > Many of my servers have an arbitrary host name and a
> > meaningful DNS alias service name. It is impractical for
> > cfagent to figure out all the aliases that map back to a
> > particular hostname, but checking a single DNS alias should
> > not be bad.
> >
> > I would like something like this (maybe with a better function name):
> >
> > classes:
> > loghost_dns_alias = ( DNSAlias(loghost) )
> >
> > Currently I use nasty code like this:
> >
> > shellcommands:
> > any::
> > # Figure out if I am the loghost.
> > "/bin/test `hostname` = `host loghost|perl
> > -e'${dollar}_=<>;s/.*alias for (.*)\./${dollar}1/;print'`"
> > define=loghost
> > loghost::
> > "/do/stuff"
> >
> > Just an idea.
> >
> > Or if anyone has a better idea for how to accomplish the same thing...
> >
> > Best,
> > Brendan
> >
> > --
> > Senior System Administrator
> > The University of Chicago
> > Department of Computer Science
> > http://www.cs.uchicago.edu/people/brendan
> >
> >
> >
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://lists.gnu.org/mailman/listinfo/help-> cfengine
> >
>