Hi,

The CSV is this:-

 Hostname,OS Version,Location,Environment,Domain,Network Type,CPU Count, 
Core Per CPU Count, Memory in MB,Disk Size in GB,Puppet Role

The script splits that up does some error handling (does the host already 
exist etc), makes sure the inputs are valid for the Satellite server in 
terms of location, domain, environment, subnet which can then derive the 
hostgroup and not entering silly things for the amount of CPU/RAM etc.

it then has all the inputs to call the main hammer command to build the 
thing.

It does do another call out to our Infoblox setup to get a static IP in a 
network range (hence the network type in the CSV) and uses that.

It's not very elegant and I threw it together very fast as we had a few 
hundred VM's to build next version will use a lot more automated way to 
push the inputs (I want 3 new VM's -> go) but it's OK for now.

Will see if I can post it somewhere suitable.

Cheers
Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to