help-cfengine
[Top][All Lists]
Advanced

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

Re: "Warning: Redefinition of macro" etc


From: Armin Wolfermann
Subject: Re: "Warning: Redefinition of macro" etc
Date: Sat, 5 Jun 2004 14:19:41 +0159
User-agent: Mutt/1.5.6i

* "Sami J. Mäkinen" <sjm@almamedia.fi> [05.06.2004 11:11]:
>    I have written a couple of shellscripts to "profile" certain files.
>    The first case is to symlink a file, for example /etc/resolv.conf
>    depending of a "profile" variable derived from cfengine.

Too many shellscripts considered harmful ;-) Most of the time it can
be done with cfengine itself, e.g.

control:
   host1|host2::
      group = ( "group1" )
   host3|host4::
      group = ( "group2" )

links:
   /etc/conf ->! /etc/conf.d/conf.DEFAULT  nofile=kill
   /etc/conf ->! /etc/conf.d/conf.$(group) nofile=kill
   /etc/conf ->! /etc/conf.d/conf.$(host)  nofile=kill





reply via email to

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