]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/vswitch/manifests/params.pp
try again, with puppetforge modules, correctly included now
[dsa-puppet.git] / 3rdparty / modules / vswitch / manifests / params.pp
diff --git a/3rdparty/modules/vswitch/manifests/params.pp b/3rdparty/modules/vswitch/manifests/params.pp
new file mode 100644 (file)
index 0000000..71f1169
--- /dev/null
@@ -0,0 +1,19 @@
+# vswitch params
+#
+class vswitch::params {
+  case $::osfamily {
+    'Redhat': {
+      $ovs_package_name = 'openvswitch'
+      $ovs_service_name = 'openvswitch'
+      $provider         = 'ovs_redhat'
+    }
+    'Debian': {
+      $ovs_package_name = ['openvswitch-switch', 'openvswitch-datapath-dkms']
+      $ovs_service_name = 'openvswitch-switch'
+      $provider         = 'ovs'
+    }
+    default: {
+      fail " Osfamily ${::osfamily} not supported yet"
+    }
+  } # Case $::osfamily
+}