[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dash in hostname causes error
From: |
Phil D'Amore |
Subject: |
Re: dash in hostname causes error |
Date: |
Fri, 03 Sep 2004 09:19:18 -0400 |
-'s are not allowed. Cfengine processes classes that it sets (hostname,
os, etc), and changes anything that is basically not [A-Za-z_] and
changes it to a _ character.
so
test-machine.example.com
becomes
test_machine_example_com
On Fri, 2004-09-03 at 07:14, mark@thompson-family.de wrote:
> I am using cfengine 2.1.10 on solaris 8. I am trying to set a variable
> based on the host I am on with the following statements:
>
> control:
>
> hostname::
> variable_1 = ( value )
>
> host-name::
> variable_1 = ( value )
>
> When I run cfagent, I get the following error message:
>
> cf:cfengine::/var/cfengine/inputs/cf.groups:24: syntax error
> Stray character (-)Looking for an input file cf.main
>
> When I comment out the lines for the hostname with the dash then
> everything runs correctly.
>
> I have searched google and looked in the docs, but can't find any
> reference to not using hostnames with dashes in them.
>
> Can anyone tell me what I am doing wrong or at least point me in the
> right direction?
>
> Thanks
> Mark
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine