summaryrefslogtreecommitdiffstats
path: root/testing/puppet-fdio/manifests/vpp/config.pp
diff options
context:
space:
mode:
authorviliamluc <vluc@cisco.com>2016-08-12 06:58:15 -0500
committerviliamluc <vluc@cisco.com>2016-08-12 06:58:15 -0500
commit9dd5d7bf353fe5ffd478ff811bb6b26538afe092 (patch)
tree7eff52993571e3ea832852a638155815e1ae5654 /testing/puppet-fdio/manifests/vpp/config.pp
parent389c6a826c951b13598fdb1462a29ce41e8a22ac (diff)
puppet module added
Change-Id: Ic70ee605b7e0e88054fe5599180026a55d7dddae Signed-off-by: viliamluc <vluc@cisco.com>
Diffstat (limited to 'testing/puppet-fdio/manifests/vpp/config.pp')
-rw-r--r--testing/puppet-fdio/manifests/vpp/config.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/puppet-fdio/manifests/vpp/config.pp b/testing/puppet-fdio/manifests/vpp/config.pp
new file mode 100644
index 0000000..96c3497
--- /dev/null
+++ b/testing/puppet-fdio/manifests/vpp/config.pp
@@ -0,0 +1,18 @@
+# == Class fdio::vpp::config
+#
+# This class handles vpp config changes.
+#
+class fdio::vpp::config (
+ $dpdk_pmd_type = $::fdio::params::dpdk_pmd_type,
+ $dpdk_pci_devs = $::fdio::params::dpdk_pci_devs,
+){
+ file { '/etc/vpp/startup.conf':
+ content => template('fdio/startup.conf.erb'),
+ }
+
+ # ensure that uio-pci-generic is loaded
+ exec { 'modprobe uio-pci-generic':
+ unless => 'lsmod | grep uio-pci-generic',
+ path => '/bin:/sbin',
+ }
+}