blob: 7c22df33edd3d8795905276ab4217e90bcd1772f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# @summary Configures networking for the system
#
# @param provider
# What service should be used to manage the networks.
# Available types will depend on the system.
# @param items
# Hash which will be passed to `create_resource` with the
# `networking::instance` suitable for the given provider.
class networking (
Optional[Enum['systemd']] $provider = undef,
Hash[String,Hash] $items = {},
) {
# TODO choose a sensible provider here
case $provider {
'systemd', undef: {
include networking::networkd
create_resources(networking::networkd_instance, $items)
}
default: {
}
}
}
|