Files
puppet-vswitch/manifests/init.pp
Takashi Kajinami 124238c25b replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

This also adds type definitions for all parameters.

Change-Id: I0e68a74bdae6e39ada7707f46e54ec180476c0dc
2023-07-13 12:50:12 +09:00

33 lines
587 B
Puppet

# == Class: vswitch
#
# Install and configure vswitch (ovs and others) using puppet.
#
# === Parameters
#
# [*provider*]
# Select vswitch to install
#
# === Examples
#
# class { 'vswitch':
# provider => 'ovs',
# }
#
# === Authors
#
# - Endre Karlson <endre.karlson@gmail.com>
# - Dan Bode <dan@puppetlabs.com>
# - Ian Wells <iawells@cisco.com>
# - Gilles Dubreuil <gdubreui@redhat.com>
#
# === Copyright
#
# Apache License 2.0 (see LICENSE file)
#
class vswitch (
Enum['ovs', 'dpdk'] $provider = $vswitch::params::provider
) {
$cls = "::vswitch::${provider}"
include $cls
}