[Spacewalk-list] Change Hostname of WebUI

Neil Hanlon neil at neilhanlon.com
Tue Jul 14 15:43:34 UTC 2015


As was suggested, you can pass these in using the --ksmeta parameter to the
"cobbler system add" command on the spacewalk server.

--
cobbler system add --name="something" --ksmeta='HOSTNAME=hostname.fqdn.com
MAC=ma:c_:ad:re:ss'
--

Then in your kickstart post script (with templating):

--

hostname='$getVar('$HOSTNAME','$HOSTNAME')'
mac='$getVar('$MAC','$MAC')

#raw
#now do something with the hostname and mac.. like
hostname "$hostname"
#endraw

--

On Mon, Jul 13, 2015 at 10:20 PM, Reed, Steven <
Steven.Reed at transport.nsw.gov.au> wrote:

>  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>
> 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> 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> 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
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>



-- 
Neil Hanlon
978.902.8171
skype: hanlon.neil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150714/a6082dba/attachment.htm>


More information about the Spacewalk-list mailing list