feat: add local pool
- the listening interface must match a subnet, or no service will start
This commit is contained in:
@@ -11,6 +11,7 @@ class profiles::dhcp::server (
|
||||
Array[String] $globaloptions = [],
|
||||
Hash $pools = {},
|
||||
Hash $classes = {},
|
||||
Boolean $empty_local_pool = false
|
||||
){
|
||||
|
||||
if $facts['enc_role'] == 'roles::infra::dhcp::server' {
|
||||
@@ -35,5 +36,12 @@ class profiles::dhcp::server (
|
||||
* => $data,
|
||||
}
|
||||
}
|
||||
|
||||
if $empty_local_pool {
|
||||
dhcp::pool {'local':
|
||||
network => $facts['networking']['interfaces'][$network_primary_interface]['network'],
|
||||
mask => $facts['networking']['interfaces'][$network_primary_interface]['netmask'],
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user