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 <| |>
}
}
|