help-cfengine
[Top][All Lists]
Advanced

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

Re: possible to undefine hostname class?


From: Tim Nelson
Subject: Re: possible to undefine hostname class?
Date: Mon, 26 Apr 2004 10:02:33 +1000 (EST)

On Fri, 23 Apr 2004, David Kewley wrote:

> I'm trying to do something weird but useful, and I can't get it to work.  I
> wonder if anyone has any ideas.
>
> I am generating kickstart files for all my hosts.  Servers get "lang_support
> en_US" and workstations get "lang_support --default en_US".  This has the
> effect of only installing Englilsh stuff on servers (that's all we sysadmins
> need), but installing all languages on workstations with English as the
> default (useful to the many folks in my department who speak other
> languages).
>
> I'd like cfagent to help me with such pieces of the kickstart file, because it
> already "knows" which machines are servers and which are workstations.
>
> Make sense so far?  I mean "sense" as in concepts, not whether it's a good
> idea.  (Although I will accept feedback on whether this is a good idea. :)
>
> The problem is, I am trying to generate all the kickstart files on one host.
> There is one cfagent run per kickstart host.  On each run, the class named
> after that hostname is defined.  But the host running cfagent also has its
> hostname class defined.  As a result, I have classes getting defined both for
> the host running cfagent, and for the host I'm generating a kickstart file
> for.
>
> I've tried multiple ways to disable the bad hostname class (-N, -U, setting
> the class to "/bin/false" before the other host classes are evaluated) but
> none of them work.
>
> Suggestions?  I welcome all suggestions, including "here's a better way to do
> it that doesn't use cfagent this way".

        Hmm.  Can you roll them all out with "lang_support en_US" and then
use cfengine to install whatever is needed for other languages?

        :)

--
Tim Nelson
Systems Administrator
Sunet Internet
Tel: +61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: sysadmin@sunet.com.au






reply via email to

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