Hey Simon, On 5/17/21 11:31 AM, Simon Avery wrote:
Hi Abid,
Thanks for your reply.
*/Problem:/*//
/I can see Uyuni regularly compares remote files to those in the config channels and reports versions, but even when a remote file is changed, it doesn’t replace the remote file./
/Compare and Deploy are 2 different artifacts. Compare only get the diff and let the user know if there is any difference between deployed file on the client and the current version available on the server, it doesn't sync automatically. One need to redeploy it again./
So my next question is; how to automate this?
My 1st reaction would be to suggest you to use XMLRPC API. It might not be as efficient(you need to do some parsing of result in step 2 given below) as you would like to but here is what you can do. 1. Call confighandler.scheduleFileComparisons method to schedule a comparison, it will return you the action id 2. Call schedule.listCompletedSystems to get the status of the action from the step 1 3. Based on action result after some pasing from step 2, call the method confighandler.deployAllSystems Hope it helps.
I’d like Uyuni to update these periodicially (daily is fine) if they have changed.
Thanks
S
-- Abid Mehmood SUSE Software Solutions Germany GmbH Maxfeldstr. 5 90409 Nuremberg Germany (HRB 36809, AG Nürnberg) Managing Director: Felix Imendörffer