I can’t share the code we’ve written – company won’t let me – but the 
applications utilise the XML RPC API: 
http://www.spacewalkproject.org/documentation/api/2.4/.

A quick pseudocode example would be to:

CALL systemgroup.listSystems(“group name”)
FOR EACH SYSTEM:
  CALL system.getUnscheduledErrata
    FOR EACH ERRATUM:
      System.scheduleApplyErrata

Pretty straightforward to do in Python.

Thanks,


Alex Dacre
Systems Engineer
+44 131 560 1476
+44 7713281778


From: [email protected] 
[mailto:[email protected]] On Behalf Of ???????
Sent: 10 March 2016 09:21
To: [email protected]
Subject: Re: [Spacewalk-list] Automatic auto updates

Hmm, via spacecmd?

Can chops and share examples? :)
Thanks.


Evgeniy

Четверг, 10 марта 2016, 7:48 UTC от Alexander Dacre 
<[email protected]<mailto:[email protected]>>:
Absolutely!

We do this with the API. I provide a system group to a little bespoke 
application which goes off and gets all the member systems. For each system it 
calls the getUnschedulerErrata method and then another to schedule them at a 
specified time. There is some other stuff it does like customer notifications 
etc too.

The reboot can also be done via the API with a similar method.

Sent from my iPhone

> On 10 Mar 2016, at 06:42, Евгений 
> <[email protected]</[email protected]>> wrote:
>
> Hi all,
>
> Can I do with spacewalk automatic patch management?
>
> Example:
>
> GroupA - regular check and install all updates(or errata), reboot as needed.
> All this in maintenance window - 2:3AM
>
> GroupB - regular check and install all updates(or errata), reboot as needed.
> All this in maintenance window - 4:5AM
>
> In Windows, all this susses fully doing in wsus+sccm.
>
> Evgeniy
>
> _______________________________________________
> Spacewalk-list mailing list
> [email protected]</compose?To=spacewalk%[email protected]>
> https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]</compose?To=spacewalk%[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to