Puppet Class: network

Defined in:
manifests/init.pp

Overview

Parameters:

  • ifupdown_extra (Any) (defaults to: 'ifupdown-extra')
  • ifupdown_extra_provider (Any) (defaults to: undef)
  • manage_ifupdown_extra (Any) (defaults to: true)
  • ensure_ifupdown_extra (Any) (defaults to: present)
  • ipaddress (Any) (defaults to: 'ipaddress')
  • ipaddress_provider (Any) (defaults to: 'puppet_gem')
  • manage_ipaddress (Any) (defaults to: true)
  • ensure_ipaddress (Any) (defaults to: absent)


56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'manifests/init.pp', line 56

class network (
  $ifupdown_extra          = 'ifupdown-extra',
  $ifupdown_extra_provider = undef,
  $manage_ifupdown_extra   = true,
  $ensure_ifupdown_extra   = present,
  $ipaddress               = 'ipaddress',
  $ipaddress_provider      = 'puppet_gem',
  $manage_ipaddress        = true,
  $ensure_ipaddress        = absent,
) {
  if $facts['os']['family'] == 'Debian' and $manage_ifupdown_extra {
    package { $ifupdown_extra:
      ensure   => $ensure_ifupdown_extra,
      provider => $ifupdown_extra_provider,
    }
    Package[$ifupdown_extra] -> Network_route <| |>
  }

  if $manage_ipaddress {
    package { $ipaddress:
      ensure   => $ensure_ipaddress,
      provider => $ipaddress_provider,
    }
    Package[$ipaddress] -> Network_config <| |>
  }
}