https://github.com/theforeman/foreman_api
d = ForemanApi::Resources::ConfigTemplate.new(
{
:base_url => $logindata[:foreman][:host],
:username => $logindata[:foreman][:username],
:password => $logindata[:foreman][:password],
})
data = d.index(headers={:page => 1, :per_page => 9000})