help-cfengine
[Top][All Lists]
Advanced

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

Running host IP


From: Dennis, Richard
Subject: Running host IP
Date: Fri, 4 Apr 2003 16:33:23 -0500

Is there a variable or a simple way to get the ip of eth0 (or main
interface) into a cfengine variable?

Linux has issues when the hostname is put in the 127.0.0.1 line rather than
it's real interface's ip and hostname.  What I'm trying to do is comment out
existing wrong 127.0.0.1 lines, and create a proper one. 

--Rick

editfiles:
   { /etc/hosts
        BeginGroupIfNoSuchLine "127.0.0.1       localhost.localdomain
localhost"
                CommentLinesStarting   "127.0.0.1"
                InsertLine "127.0.0.1       localhost.localdomain localhost"
                InsertLine "$(some_variable)           $(host)"
        EndGroup
   }

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.






reply via email to

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