[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does cfagent determine the hostname?
From: |
ebrown |
Subject: |
Re: How does cfagent determine the hostname? |
Date: |
Thu, 23 Sep 2004 08:41:19 -0600 (MDT) |
User-agent: |
SquirrelMail/1.4.3-1.lanl |
This works for us:
hostname `grep HOSTNAME /etc/sysconfig/network |cut -d'=' -f2`
-Ed
>
> Timothy Sven Nelson wrote:
>
>>> I'm trying to automate a machine installation with kickstart and
>>> cfengine. In my %post section, the last two lines are
>>>
>>> hostname `hostname --fqdn`
>>> cfagent -Kvq
>>>
>>> This approach seems to work on RHAS2.1, but not RHEL3.
>>>
>>> How should I set the hostname for cfagent?