help-cfengine
[Top][All Lists]
Advanced

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

Re: Way to have cfengine not run when not on company network


From: Chris Edillon
Subject: Re: Way to have cfengine not run when not on company network
Date: Thu, 30 Sep 2004 10:33:22 -0400 (EDT)

On Thu, 30 Sep 2004, Anne Cross wrote:

> On Wed, Sep 29, 2004 at 09:01:24PM -0700, Chris Kacoroski wrote:
>
> > I have cfengine running on several laptops.  When these machines are
> > taken home and plugged into home DSL lines, cfengine runs and they
> > attempt to contact the server which fails.  I then get error messages of
> > all the failures.  Any ideas on how to either (1) turn off the error
> > messages when the machine is not on the company network or (2) have
> > cfengine not connect to the server if it is not on the company internal
> > network.
>
> Assuming your network has a standard address space that the DSL lines
> don't share, maybe have your config only actually do anything when the
> IP is your company's IP?
>
> I'm assuming the laptops have DHCP, which may be incorrect, but if
> they do, their IPs will presumably change from company network to
> private network, and if the config has an actionsequence only when the
> IP is in a certain netblock, that ought to solve things.
>
  a good idea.  if this won't work for you for some reason, you could
also use an external module which tries to ping the server, and if
it gets a response set a "server_available" class or some such.  then
you write your copy stanzas so they only run when server_available is
true.



reply via email to

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