[Spacewalk-list] Change Hostname of WebUI

Reed, Steven Steven.Reed at transport.nsw.gov.au
Tue Jul 14 02:20:19 UTC 2015


Hi,

Did anyone find an answer to this ? to change a CLIENTs hostname from the client itself.

apart from having a shell script ask the hostname question ?

The only other way I've done it, is to add the MAC address and hostname in to a DHCP reservation but that's not fun when deploying multiple VM's

From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Jeremy Maes
Sent: Thursday, 30 October 2014 9:33 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Change Hostname of WebUI

On 29 October 2014 16:05, Waldirio Manhães Pinheiro <waldirio at gmail.com<mailto:waldirio at gmail.com>> wrote:


        Hello Alexander,

        Thanks for your reply but no, the rhn-profile-sync just update hardware, software (installed packages) and virtual guest instances.


You need to make the distinction between the hostname (which actually IS updated by rhn-profile-sync) and the "system name" (the name used in spacewalk itself).


        Another idea or workaround ?!


If it's really the system name you want to change then you should use Alexander Innes' way of using spacecmd. You might have to install that one first on the remote system though and it might need a few more parameters to point it at your spacewalk server etc.

When deploying using kickstart you can add additional parameters to the profile line at PXE boot time and parse them in your kickstart scripts to automatically fill in the hostname and change the system name afterwards.

Regards,
Jeremy


        Ps.: I just checked in my lab.

        B'Regards

        ______________
        Atenciosamente
        Waldirio


        On Wed, Oct 29, 2014 at 1:44 PM, Alexander Innes <senni at necurity.co.uk<mailto:senni at necurity.co.uk>> wrote:


            rhn-profile-sync i think is what you want, that updates all the info about the host


            On 29 October 2014 15:28, Waldirio Manhães Pinheiro <waldirio at gmail.com<mailto:waldirio at gmail.com>> wrote:


                Hello Friends

                Is it possible change the hostname of WebUI, but from system registered ?!

                Imagine the situation, deploy a new server using kickstart and after auto register in SW the hostname appear as localhost.localdomain. I can change the hostname in the client (/etc/sysconfig/network), although the hostname in WebUI will still the same (localhost.localdomain).

                Are there any way to force a update from client to SW to update the hostname, setting equal hostname configured in the client ?!

                Appreciate your comments.

                ______________
                B'Regards
                Waldirio



**** DISCLAIMER ****
http://www.schaubroeck.be/maildisclaimer.htm
Attachments:
ATT00001.txt <http://evserver6.rail.nsw.gov.au/EnterpriseVault/ViewMessage.asp?VaultId=132C6882FEF9E6F498052AC7547AB6E4F1110000Vault1.rail.nsw.gov.au&SavesetId=201412299857226~201410301048590000~Z~80BB2AFB75FD7974B6518FB5050B9531&AttachmentId=1>

(0 KB)



________________________________
This email (including any attachments) may contain confidential and/or legally privileged information and is intended only to be read or used by the addressee(s). If you have received this email in error, please notify the sender by return email, delete this email and destroy any copy. Any use, distribution, disclosure or copying of this email by a person who is not the intended recipient is not authorised.

Views expressed in this email are those of the individual sender, and are not necessarily the views of Transport for NSW, Department of Transport or any other NSW government agency. Transport for NSW and the Department of Transport assume no liability for any loss, damage or other consequence which may arise from opening or using an email or attachment.
Please visit us at http://www.transport.nsw.gov.au or http://www.transportnsw.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150714/88fc6ff5/attachment.htm>


More information about the Spacewalk-list mailing list