<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks for the reply, but the bit you described i already sussed. I
would like to populate the custom_info from a system based variable,
ie.:<br>
<br>
var set on system of like export SYS_VAR_HOST_JOB=SVNSRVR<br>
<br>
I would like this system based var to be imported and set in SW
under custom info key SW_CUST_INF_HOST_JOB so that I can use it in
scripts like <br>
<br>
{|rhn.system.custom_info(SW_CUST_INF_HOST_JOB) = $SYS_VAR_HOST_JOB<br>
<br>
On 17/03/11 22:55, Colin Coe wrote:
<blockquote
cite="mid:AANLkTikyexRE6yXy9qwOr+NPM7kzmFOFTPq_oOfadHD+@mail.gmail.com"
type="cite">
<pre wrap="">On Thu, Mar 17, 2011 at 6:00 PM, Kobus Bensch <a class="moz-txt-link-rfc2396E" href="mailto:kobus.bensch@lovefilm.com"><kobus.bensch@lovefilm.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi everyone
I am looking at custom info. Is there a way I can use vars set on the
server to populate the key to then use in the config file?
Kobus
</pre>
</blockquote>
<pre wrap="">
Custom info keys are defined globally (with an org) but can
potentially have a different value for each system. Case in point we
have two data centres about 1600km apart. Nodes at location A use NFS
server A, while those in location B use NFS server B. A simple script
is used to set the nfs_server custom info key for each server and then
the key is just referenced in the autofs file like:
/fileshare -rw,hard,intr {|
rhn.system.custom_info(nfs_server) = defaultnfs.company.com
|}:/fileshare
If the custom info key is not set for a server it will use
'defaultnfs.company.com'.
I hope this is what you were after.
CC
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>Kobus Bensch</b><br>
Linux Administrator<br>
<a class="moz-txt-link-abbreviated" href="mailto:kobus.bensch@lovefilm.com">kobus.bensch@lovefilm.com</a><br>
<br>
No.9 | 6 Portal Way | London | W3 6RU |<br>
T: +44 (0)20 8896 8014 | F: +44 (0)20 8896 8111<br>
<a href="http://www.lovefilm.com"><img
src="cid:part1.07060403.04030105@lovefilm.com"></a>
</div>
<BR>
<BR>
<span style="font-family:Arial; Font-size:10.0pt">
<hr width="100%">
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Verdana size=2>LOVEFiLM UK Limited is a
company registered in England and Wales. <BR>Registered Number: 06528297. <BR>Registered Office:
No.9, 6 Portal Way, London W3 6RU, United Kingdom.</FONT></P> <P><FONT face=Verdana size=2>
This e-mail is confidential to the ordinary user of the e-mail address to which it was <BR>addressed.
If you have received it in error, please delete it from your system and notify <BR>the sender
immediately.<BR><BR>
This email message has been delivered safely and archived online by Mimecast.<BR>
For more information please visit <a href="http://www.mimecast.co.uk">http://www.mimecast.co.uk</a>
</P><hr width="100%">
</span>
</body>
</html>