[Spacewalk-list] questions about spacecmd and rhnreg_ks

Ananta Chakravartula ananta.c at googlemail.com
Tue Aug 13 13:54:50 UTC 2019


I created groups dev/stage/prod and assigned nodes to those groups
depending on our chef client environment.

My questions

1) whenever I run `rhnreg_ks` on clients, i want to run a script on the
server to add the node to a certain group and  set basechannel depending on
the environment. for example I want all the prod nodes to be set to base
channel prod-xxx. I wrote some code for that, but how can i trigger it on
rhnreg_ks, is it possible?

2) I don't see any option in here
<https://spacewalkproject.github.io/documentation/api/2.9/handlers/ServerGroupHandler.html
.> to set all the nodes in a group to certain base channel.It will be nice
to add that , is there any space where I can create a PR or suggest?
This
<https://spacewalkproject.github.io/documentation/api/2.9/handlers/SystemHandler.html#setBaseChannel>
takes only systemid, it will be nice if it can take groupname or groupid

3) How can i set spacecmd not to cache in config? I run in to many issues
with spacecmd not doing what it is supposed to be even after confirming the
changes in stdout. Some gets cleared vi clear_caches. I also can't
reproduce the issues, so i can't open bug report. It will be nice and handy
if there is any config option not to do caching.

cheers,
ac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190813/e778286d/attachment.htm>


More information about the Spacewalk-list mailing list