Revision 15ebe743
Added by Ewoud Kohl van Wijngaarden about 4 years ago
manifests/params.pp | ||
---|---|---|
# @api private
|
||
class dhcp::params {
|
||
|
||
$dnsdomain = [$facts['domain']]
|
||
$dnsdomain = [$facts['networking']['domain']]
|
||
$pxefilename = 'pxelinux.0'
|
||
|
||
case $facts['osfamily'] {
|
||
case $facts['os']['family'] {
|
||
'Debian': {
|
||
$dhcp_dir = '/etc/dhcp'
|
||
$packagename = 'isc-dhcp-server'
|
||
... | ... | |
$packagename = 'dhcp'
|
||
$servicename = 'dhcpd'
|
||
$root_group = 'root'
|
||
if $facts['operatingsystemrelease'] =~ /^[0-6]\./ {
|
||
if $facts['os']['release']['full'] =~ /^[0-6]\./ {
|
||
$bootfiles = {
|
||
'00:07' => 'grub/grubx64.efi',
|
||
'00:09' => 'grub/grubx64.efi',
|
||
... | ... | |
}
|
||
|
||
default: {
|
||
fail("${facts['hostname']}: This module does not support osfamily ${facts['osfamily']}")
|
||
fail("${facts['networking']['hostname']}: This module does not support osfamily ${facts['os']['family']}")
|
||
}
|
||
}
|
||
}
|
Also available in: Unified diff
Use modern facts