Skip to content

Spacewalk / Satellite XMLRPC API client in python

Notifications You must be signed in to change notification settings

a4649/spacewalk-api-python-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Spacewalk (RedHat Satellite) API Python client

Spacewalk version 2.10 - https://spacewalkproject.github.io/documentation.html

How To

import spacewalk

key = spacewalk.login()

target = spacewalk.get_systems(key, "web")

spacewalk.run_cmd(key, 'Update apache in web servers', target, 'root', 'root', '!#/bin/bash\n yum update -y httpd;systemctl restart httpd')