All,
I have successfully deployed a Windows VM template image using Foreman with
the below network configuration in the user_data template:
nicSettingMap:
<% @host.interfaces.each do |interface| %>
- adapter:
gateway: [<%= interface.subnet.gateway %>]
ip: <%= interface.ip %>
subnetMask: <%= interface.subnet.mask %>
dnsDomain: <%= interface.domain %>
dnsServerList: [<%= interface.subnet.dns_primary %>, <%=
interface.subnet.dns_secondary %>]
<% end %>
globalIPSettings:
dnsServerList:
- <%= @host.subnet.dns_primary %>
- <%= @host.subnet.dns_secondary %>
dnsSuffixList:
- <%= @host.domain %>
But many of our deployments utilize DHCP reservations and I cannot figure
out for the life of me how to edit the user_data template to have foreman
use DHCP for the interfaces. I have done some extensive googling and read
the Foreman manual, template writing guide and VMware API guide to no
avail. What am I missing here?
Any help would be appreciated greatly.
--
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.