benvin/dhcp_failover #327
@ -8,3 +8,6 @@ vault::disable_mlock: true
|
|||||||
|
|
||||||
# manage jellyfin changes
|
# manage jellyfin changes
|
||||||
profiles::media::jellyfin::data_dir: /shared/apps/jellyfin
|
profiles::media::jellyfin::data_dir: /shared/apps/jellyfin
|
||||||
|
|
||||||
|
# dhcp-server requirements
|
||||||
|
profiles::dhcp::server::empty_local_pool: true
|
||||||
|
|||||||
@ -11,6 +11,7 @@ class profiles::dhcp::server (
|
|||||||
Array[String] $globaloptions = [],
|
Array[String] $globaloptions = [],
|
||||||
Hash $pools = {},
|
Hash $pools = {},
|
||||||
Hash $classes = {},
|
Hash $classes = {},
|
||||||
|
Boolean $empty_local_pool = false
|
||||||
){
|
){
|
||||||
|
|
||||||
if $facts['enc_role'] == 'roles::infra::dhcp::server' {
|
if $facts['enc_role'] == 'roles::infra::dhcp::server' {
|
||||||
@ -35,5 +36,12 @@ class profiles::dhcp::server (
|
|||||||
* => $data,
|
* => $data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $empty_local_pool {
|
||||||
|
dhcp::pool {'local':
|
||||||
|
network => $facts['networking']['interfaces'][$network_primary_interface]['network'],
|
||||||
|
mask => $facts['networking']['interfaces'][$network_primary_interface]['netmask'],
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user