Definitely... It seems like a lot of the framework is already there, just
need a button and a function on the backend to tell SW to go out and update
the files when differences are found :)  

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Stephan Duehr
Sent: Thursday, October 02, 2014 12:56 PM
To: [email protected]
Subject: Re: [Spacewalk-list] Force Configuration File Compliance During
Compares?

Hi,

the API does not expose details of config compare actions:

>>> sys_events = client.system.listSystemEvents(session, sys_id) 
>>> pp.pprint([e for e in sys_events if e['id'] == 14090])
[   {   'action_type': 'Show differences between profiled config files and
deployed config files',
        'archived': 0,
        'completed_date': <DateTime '20141002T18:14:52' at 19f85f0>,
        'completion_time': '2014-10-02 18:14:52.090907',
        'created': '2014-10-02 18:14:44.37733',
        'created_date': <DateTime '20141002T18:14:44' at 19f8518>,
        'earliest_action': '2014-10-02 18:14:00.0',
        'failed_count': 0,
        'id': 14090,
        'modified': '2014-10-02 18:14:52.090907',
        'modified_date': <DateTime '20141002T18:14:52' at 19f8560>,
        'name': 'Show differences between profiled config files and deployed
config files',
        'pickup_date': <DateTime '20141002T18:14:51' at 19f84d0>,
        'pickup_time': '2014-10-02 18:14:51.846311',
        'result_msg': 'Files successfully diffed',
        'scheduler_user': 'stephand',
        'successful_count': 1,
        'version': '2'}]

In Spacewalk Web UI however, I see
The client completed this action on 10/2/14 6:14 PM Client execution
returned "Files successfully diffed" (code 0) Config Files:
/etc/ssh/sshd_config (rev. 2)
/var/tmp/testdir_from_channel/testfile_06 (rev. 1) Missing file ...

It would be a useful feature, if the API would expose some details of the
compare action result. If not all details, at least something that tells if
differences exist or not.

Regards

Stephan


On 10/02/2014 03:43 PM, Glennie, Jonathan - 0443 - MITLL wrote:
> Hello-
> 
>  
> 
> Is there a way to configure spacewalk to automatically push config 
> files to client systems when the compares get run and differences are 
> noticed?  I’m working with a large number of VMs and sometimes they 
> get rolled back to previous states from snapshots, therefor any config
file updates/changes that have been previously made and pushed do not get
reapplied as SW thinks the client picked up and executed it’s task, even
though the client is then in a state where it hasn’t.  I would like to be
able to tell SW and the client to automatically re-deoploy config files to a
machine when differences are found, but right now the only way I can think
of to do that is to put a cron entry on every machine to run “rhncfg-client
get” at some specified time interval.  It’s a lot of unnecessary overhead
> and the network traffic could be trimmed down quite a bit if SW and the
clients were only updating files that need to be and only when they need to
be.   Does anyone know of a better way?  Thanks. 
> 
>  
> 
> -Jon
> 
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 


-- 
Stephan Dühr                                [email protected]
dass IT GmbH                               Phone: +49.221.3565666-90
http://www.dass-IT.de                        Fax: +49.221.3565666-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRB52500
Geschäftsführer: S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to