[Spacewalk-list] Automatic auto updates

Alexander Dacre alex.dacre at aridhia.com
Thu Mar 10 10:42:47 UTC 2016


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: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of ???????
Sent: 10 March 2016 09:21
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] Automatic auto updates

Hmm, via spacecmd?

Can chops and share examples? :)
Thanks.


Evgeniy

Четверг, 10 марта 2016, 7:48 UTC от Alexander Dacre <alex.dacre at aridhia.com<mailto:alex.dacre at aridhia.com>>:
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, Евгений <evgen787 at mail.ru</compose?To=evgen787 at mail.ru>> 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
> Spacewalk-list at redhat.com</compose?To=Spacewalk%2dlist at redhat.com>
> https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com</compose?To=Spacewalk%2dlist at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20160310/c9ec1fa6/attachment.htm>


More information about the Spacewalk-list mailing list