[Spacewalk-list] Is It Possible to Update Hostname After System Registers to Spacewalk?

rob morrien rmorrien at xs4all.nl
Sat Feb 20 12:59:57 UTC 2010


James,

we have written locally an appication which configured the host name
and all the network interfaces in the machine.
At the end during the kickstart the machine is registered into spacewalk
or the sat server with the correct name.

we made this application because we are not allowed to use the pxe
bootstrap function and we are not allowed to  to use the dhcp server
function.

regards rob




On 19 February 2010 19:33, Glennie, Jonathan - 0443 - MITLL
> <jrglenni at ll.mit.edu> wrote:
>> Hmm.. something else must be going wrong then.  I had thought that the
>> rhn-profile-sync command might be what I was looking for but it didn't
>> seem to do anything.  I'll have to poke around and see if I can figure
>> out what's going wrong with that then.
>>
>> Maybe I'm missing something as I am new to the entire kickstart
>> business, but the only way I know to do that is to create an individual
>> kickstart file for each machine with the proper host name set.  Rather
>> than do that that, I prefer using 1 kickstart profile and then running a
>> script on first boot to finalize the machine.
>>
>> -----Original Message-----
>> From: spacewalk-list-bounces at redhat.com
>> [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of James Hogarth
>> Sent: Friday, February 19, 2010 2:29 PM
>> To: spacewalk-list at redhat.com
>> Subject: Re: [Spacewalk-list] Is It Possible to Update Hostname After
>> System Registers to Spacewalk?
>>
>> On 19 February 2010 19:26, James Hogarth <james.hogarth at gmail.com>
>> wrote:
>>> On 19 February 2010 19:23, James Hogarth <james.hogarth at gmail.com>
>>> wrote:
>>>> On 19 February 2010 18:14, Glennie, Jonathan - 0443 - MITLL
>>>> <jrglenni at ll.mit.edu> wrote:
>>>>> Hello All-
>>>>>
>>>>>
>>>>>
>>>>> I've been playing around with kickstarts in spacewalk 7 and have
>>>>> gotten
>>>>> things to the point where I can completely configure a base system to
>>>>> my
>>>>> requirements and boot that system into a graphical interface without
>>>>> my
>>>>> interaction.  The last thing I would like to do is change the system
>>>>> name.
>>>>> I can't seem to find any way to update a system's host name after it
>>>>> has
>>>>> registered to spacewalk, is there such an option?  Ideally I'd like
>>>>> to
>>>>> script this client side so I could execute a script on the machine
>>>>> one last
>>>>> time before it is good to go.    Worst case scenario, would it be
>>>>> possible
>>>>> to unregister the client, change its hostname, then re-register it
>>>>> with its
>>>>> new hostname, all form the client side?
>>>>>
>>>>
>>>> For clarity - as it can get confusing - are you talking about the
>>>> hostname or the displayed named in the system list?
>>>>
>>>> James
>>>>
>>>
>>> If you mean hostname registered in spacewalk then just change it on
>>> the client and do a rhn-profile-sync ..
>>>
>>> If you mean the displayed name take a look at the XML-RPC API - there
>>> are some great docs on it.
>>>
>>> Specifically you want:
>>>
>>> http://www.redhat.com/spacewalk/documentation/api/0.8/handlers/SystemHandler.html#setDetails
>>>
>>> That will let you set the displayed name in the systems list.
>>>
>>> James
>>>
>>
>> Apologies for the reply to myself *again* but why change the name
>> after the system has built? You could have it correct from the
>> beginning during the kickstart and then not have to worry about it....
>> Oh and if you change it sfter the system is built remember to amend
>> /etc/hosts with the new name...
>>
>> James
>>
>> _______________________________________________
>> 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
>>
>
> Busy at home now - will post on hwo I have it done at work on monday.
>
> _______________________________________________
> 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