Hi

The following is an example power_vmware.template

I am trying to supply the powervmbymac.pl with a few extra variables:

/etc/cobbler/power/powervmbymac.pl
--server $power_address
--username $power_user
--password $power_pass
--operation $power_mode
--mac $interface['eth0'].get('mac_address')
--portgroup $portgroupname


The first three variables are easy to get but the last two I am not  
sure.

How do I get the mac address of eth0?  Or how do I get the mac address  
from the system object?
I would like to add a section to /etc/cobbler/settings and have the  
user set the default portgroup.  But how would I retrieve this  
variable set in settings?
Can I use python code in the template?  What is the execution  
environment for the template?


thanks,


Corey
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to