[Spacewalk-list] Assigning a configuration channel to an activation key
Partha Aji
paji at redhat.com
Mon Aug 11 17:22:53 UTC 2008
That part is a bit broken still.. I am in the middle fixing the UI part..
For now if you need to add config channels you can use the xmlrpc API,
Look at
https://fedorahosted.org/spacewalk/wiki/XmlrpcHandlers#UsingtheAPI for
more info.. Here is a sample snippet in python that should add the
config channels to your activation key..
#!/usr/bin/env python
import xmlrpclib
SATELLITE_HOST = "<your satellite address>"
SATELLITE_URL = "http://%s/rpc/api" % SATELLITE_HOST
login = "admin"
password = "password"
#connect to the server
client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
# get the session key
key = client.auth.login(login, password)
client.activationkey.set_config_channels(key, ["<activation-key-1>",
"<activation-key-2>" ...], ['>config_channel_label-1>',
'>config_channel_label-2>'....])
client.auth.logout(key)
thanks
Partha
Mike McCune wrote:
> Jason Ganovsky wrote:
>> Hi all, I don't know if its a bug or a configuration issue on my part,
>> but I can't seem to figure out how to assign a configuration channel
>> to an activation key.
>>
>> It looks like the option is there under Activation Keys ->
>> Configuration, but under rank there is 3 character field with "{ra" in
>> it and then a Name field with "{name}" and it isn't editable.
>>
>> How can I assure that centrally managed configuration files are
>> applied when a system registers?
>
> I believe the above behavior is a bug that one of our developers Partha
> is familiar with. Partha, care to chime in?
>
> Mike
>
More information about the Spacewalk-list
mailing list