|
---
|
|
# Enable DHCP management
|
|
# Can be true, false, or http/https to enable just one of the protocols
|
|
:enabled: <%= @module_enabled %>
|
|
|
|
# valid providers:
|
|
# - dhcp_isc (ISC dhcp server)
|
|
# - dhcp_native_ms (Microsoft native implementation)
|
|
# - dhcp_libvirt (dnsmasq via libvirt)
|
|
:use_provider: dhcp_<%= scope.lookupvar("foreman_proxy::dhcp_provider") %>
|
|
:server: <%= scope.lookupvar("foreman_proxy::dhcp_server") %>
|
|
# subnets restricts the subnets queried to a subset, to reduce the query time.
|
|
<% if subnets = scope.lookupvar("foreman_proxy::dhcp_subnets") and subnets.any? -%>
|
|
:subnets:
|
|
<% subnets.each do |c| -%>
|
|
<%= " - #{c}" %>
|
|
<% end -%>
|
|
<% else -%>
|
|
#:subnets:
|
|
# - 192.168.205.0/255.255.255.128
|
|
# - 192.168.205.128/255.255.255.128
|
|
<% end -%>
|