Puppet Class: profile::installserver::dhcp

Defined in:
modules/profile/manifests/installserver/dhcp.pp

Overview

SPDX-License-Identifier: Apache-2.0 Installs a DHCP server and configures it for WMF

Parameters:

  • ensure_service (Enum['stopped', 'running']) (defaults to: lookup('profile::installserver::dhcp::ensure_service'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'modules/profile/manifests/installserver/dhcp.pp', line 3

class profile::installserver::dhcp(
  Enum['stopped', 'running'] $ensure_service = lookup('profile::installserver::dhcp::ensure_service'),
){

  include network::constants
  class { 'install_server::dhcp_server':
    ensure_service => $ensure_service,
    mgmt_networks  => $network::constants::mgmt_networks_bydc,
  }

  ferm::service { 'dhcp':
    proto  => 'udp',
    port   => 'bootps',
    srange => '($PRODUCTION_NETWORKS $NETWORK_INFRA)',
  }
}