[colug-432] RHEL Satellite v5 api user privileges

Scott McCarty scott.mccarty at gmail.com
Thu Sep 3 16:32:18 EDT 2015

The new Sat6 API is the core of everything. The GUI uses the RET API and so does the Hammer CLI. 
Check out this article to see how easily you can do things with the hammer CLI:
Best RegardsScott M
Sent from my Verizon Wireless 4G LTE smartphone
Scott McCarty, RHCA
Email: scott.mccarty at gmail.comTwitter: @fatherlinux
Cell: 330-807-1043
Web: http://crunchtools.com-------- Original message --------From: Matthew Hyclak <hyclak at gmail.com> Date: 9/3/2015  1:23 PM  (GMT-08:00) To: Central OH Linux User Group - 432xx <colug-432 at colug.net> Subject: Re: [colug-432] RHEL Satellite v5 api user privileges 
Satellite 6 is a REST API. 
https://satellite/api/v2/hosts?per_page=1000 will return you a json-formatted list of the first 1000 of your hosts. Obviously adjust the per_page to meet your needs - the default is 20.

You can probably do it with one curl call :-)
On Thu, Sep 3, 2015 at 2:53 PM, Rick Hornsby <richardjhornsby at gmail.com> wrote:

> On Sep 3, 2015, at 12:36, Scott McCarty <scott.mccarty at gmail.com> wrote:


> You are not missing anything. I have seen this before with other automation I have done. Pretty much anything useful needs a power user. The API is old and just not that soohisticated from an RBAC perspective (Sat6 is much more sophisticated).


> Long story short, I have historically kept scripts as root only, directly on the Satellite box..

Thanks, that helps.  We'll be moving to Satellite 6 at some point here, but we're not there yet.  Hopefully the access controls are better, but (that aside) the API stays this easy to use.

Seriously - it's basically two lines in perl or ruby - call auth.login to get a session key, and call system.getId to get a list of hosts.  It can't get much easier.  Despite the scary sounding name XMLRPC, the rest of the API looks basically just as easy.


colug-432 mailing list

colug-432 at colug.net


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20150903/d731b476/attachment-0001.html 

More information about the colug-432 mailing list