[Spacewalk-list] RHN macro to get short hostname

Jason M. Nielsen jnielsen at myriad.com
Wed Dec 19 15:19:39 UTC 2012


As a side note I have a user created specifically for submitting 
variables which is restricted to only Configuration Management. Helps 
reduce the security risk. And no, that is not my satellite password nor 
the password for the submission user, for anyone wondering.


On 12/19/2012 12:38 AM, Pierre Casenove wrote:
> Hello,
> I can't as I want to use the macro in some configuration files, where you
> can't put scripts in them
>
> Pierre
>
>
> 2012/12/19 Jørgen Hysvær Langgåt <jorgenhl at gmail.com>
>
>> On Tue, Dec 18, 2012 at 5:10 PM, Pierre Casenove <pcasenove at gmail.com>wrote:
>>
>>> Hello list,
>>> The RHN predefined macro rhn.system.hostname allows you to get the FQDN
>>> of a client.
>>> In order to manage the /etc/hosts file on some hosts, I would like to get
>>> the FQDN and the short name.
>>> How could I perform this?
>>>
>>>
>> How about "cut -d. -f 1" from the FQDN?
>>
>> Regards,
>> Jørgen
>>
>>
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>





More information about the Spacewalk-list mailing list