Puppet Class: network

Defined in:
manifests/init.pp

Summary

Configure basic networking

Overview

Parameters:

  • resolvers (Array[String]) (defaults to: ['8.8.8.8#dns.google', '8.8.4.4#dns.google'])

    list of resolvers for DNS lookups

  • domains (Array[String]) (defaults to: [])

    list of domains for search path

  • dnsovertls (Boolean) (defaults to: true)

    enable DNS over TLS

  • bridges (Hash[String, Array[String]]) (defaults to: {})

    sets interfaces which should be bridged

  • ignore (Array[String]) (defaults to: ['^lo$', '^docker\d+$', '^(tap|veth)', '^wg\d+'])

    sets interface regex patterns to not create network configurations for



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/init.pp', line 8

class network (
  Array[String] $resolvers = ['8.8.8.8#dns.google', '8.8.4.4#dns.google'],
  Array[String] $domains = [],
  Boolean $dnsovertls = true,
  Hash[String, Array[String]] $bridges = {},
  Array[String] $ignore = ['^lo$', '^docker\d+$', '^(tap|veth)', '^wg\d+'],
) {
  case $facts['os']['family'] {
    'Archlinux': { include network::systemd }
    'Arch': { include network::systemd }
    'Debian': { include network::systemd }
    default: { fail("Module does not support ${facts['os']['family']}") }
  }
}