Compute Profile

I need to create bunch of compute profiles for Libvirt resources.
Preferably I would like to create them at the install time and as new
Compute resources come online.

Currently, it is labor intensive, error prone manual process. I was hoping
to be able to use Hammer CLI and have been waiting for this feature for
some time now.

What else can be done? Another option I am considering is using Selinium
web record/play to populate these profiles.

Thanks,
-AP

Did you try REST API? If you write in python, python-foreman will make your
life easier.

ยทยทยท On Thursday, March 3, 2016 at 5:11:17 PM UTC+2, An Pat wrote: > > I need to create bunch of compute profiles for Libvirt resources. > Preferably I would like to create them at the install time and as new > Compute resources come online. > > Currently, it is labor intensive, error prone manual process. I was > hoping to be able to use Hammer CLI and have been waiting for this feature > for some time now. > > What else can be done? Another option I am considering is using Selinium > web record/play to populate these profiles. > > Thanks, > -AP >

The API is a good choice, as suggested. If that's not enough, and you're
familiar with Rails, you could use a database seed, like
https://github.com/theforeman/foreman/blob/develop/db/seeds.d/13-compute_profiles.rb

  • obviously you'd want more attributes in the hashes on lines 5-7.