# @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: { } } }