[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Configuration Nightmare
From: |
Ed Brown |
Subject: |
Re: Configuration Nightmare |
Date: |
Wed, 26 May 2004 16:24:25 -0600 |
On Wed, 2004-05-26 at 15:50, Luke A. Kanies wrote:
...
> However (and I probably should have covered this in the article; live and
> learn), you must use the server's short name; cfengine treats the '.'
> character as an AND, so in the above snippet, 'cfengine_server' only gets
> set if 'my' and 'server' and 'fqdn' is set.
>
> Thus, you should have:
>
> groups:
> cfengine_server = ( hostname )
>
> where 'hostname' is the short, unqualified name of your server. This name
> is automatically set as a class by cfengine; if you run cfagent in verbose
> mode you will see a list of classes set at parse time, and your hostname
> should be one of them. Use that hostname in the above test.
>
Perhaps you could do this, if fully qualified hostname is what you want:
groups:
cfengine_server = ( hostname_domain_components )
( or 'my_server_fqdn', to use the previous example. )
-Ed