It requires a newer version of fence_vmware (one that uses the fence_vmware_helper instead of ssh). http://git.fedorahosted.org/git/fence-agents.git
The power_id field for cobbler systems is overloaded with lots of options separated by a ':'. That seems to be the way other templates have done it.
It needs csv added to the whitelist of python modules in /etc/cobbler/settings. Certainly, it could be rewritten without that dependency if that's a problem. It seemed the best way to deal with missing data. That is, the way the fields are ordered you could just specify the agent name in the power_id field and the rest would default okay.
-Kevin
cat power_vmware.template
#import csv #set $vminfo = csv.DictReader([$power_id], fieldnames=["vmware_name","vmware_type","vmware_datacenter"], delimiter=':', skipinitialspace=True, escapechar='\',).next()
## these args appear to be reserved but unused at the moment in fence_vmware ## "secure", "identity_file", "power_timeout", "shell_timeout", "login_timeout", "power_wait"
#if not $vminfo["vmware_type"] #set $vminfo["vmware_type"] = "esx" #end if
#set $vmware_datacenter_switch = "" #if $vminfo["vmware_datacenter"] #set $vmware_datacenter_switch = "-s %s" % $vminfo[vmware_datacenter] #end if
fence_vmware_ng -a "$power_address" -l "$power_user" -p "$power_pass" -n "$vmware_name" -d $vminfo["vmware_type"] $vmware_datacenter_switch -o "$power_mode"
cobbler-devel@lists.fedorahosted.org