VMware Cloud Community
shaka
Enthusiast
Enthusiast

ESX 4.1 kickstart automation - host variables

I am trying to automate my Kickstart build process.  I'd like to keep my host variables in a csv file, which would contain information like mgmt_ip, vmotion IP addres, NFS vmkernel IP address, active directory domain and so on.

hostname     mgmt_ip          vmotion_ip     nfs_ip          ad_domain

host1           192.168.1.3      10.10.10.1     10.10.1.5     test.com

host2           192.168.1.6      10.10.10.5     10.10.1.6     example.com

host3           192.168.1.9      10.10.10.8     10.10.1.8     test.com

I would like to be able to retrieve the variables from the CSV file for the specific host during the %pre process in the kickstart script.  I am thinking I would use curl to download the file and then have to search for the hostname or mgmt_ip in the csv file and then take in the row and assign the varialbes.  Then save it locally so that it could be utilized in the %post process.

Reply
0 Kudos
0 Replies