|
---
|
|
# Enable DHCP management
|
|
:enabled: <%= @module_enabled %>
|
|
# valid vendors:
|
|
# - isc
|
|
# - native_ms (Microsoft native implementation)
|
|
# - virsh (simple implementation for libvirt)
|
|
<% if scope.lookupvar("foreman_proxy::dhcp") == true -%>
|
|
:dhcp_vendor: <%= scope.lookupvar("foreman_proxy::dhcp_vendor") %>
|
|
:dhcp_config: <%= scope.lookupvar("foreman_proxy::dhcp_config") %>
|
|
:dhcp_leases: <%= scope.lookupvar("foreman_proxy::dhcp_leases") %>
|
|
<% if !scope.lookupvar("foreman_proxy::dhcp_key_name").empty? && !scope.lookupvar("foreman_proxy::dhcp_key_secret").empty? -%>
|
|
:dhcp_key_name: <%= scope.lookupvar("foreman_proxy::dhcp_key_name") %>
|
|
:dhcp_key_secret: <%= scope.lookupvar("foreman_proxy::dhcp_key_secret") %>
|
|
<% else -%>
|
|
#:dhcp_key_name: secret_key_name
|
|
#:dhcp_key_secret: secret_key
|
|
<% end -%>
|
|
<% else -%>
|
|
# The vendor can be either isc or native_ms
|
|
:dhcp_vendor: isc
|
|
# dhcp_subnets is a Native MS implementation setting. It restricts the subnets queried to a
|
|
# subset, so as to reduce the query time.
|
|
#:dhcp_subnets: [192.168.205.0/255.255.255.128, 192.168.205.128/255.255.255.128]
|
|
# Settings for Ubuntu ISC
|
|
#:dhcp_config: /etc/dhcp3/dhcpd.conf
|
|
#:dhcp_leases: /var/lib/dhcp3/dhcpd.leases
|
|
# Settings for Redhat ISC
|
|
#:dhcp_config: /etc/dhcpd.conf
|
|
#:dhcp_leases: /var/lib/dhcpd/dhcpd.leases
|
|
<% end -%>
|