aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/config.pp
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-11-07 19:22:21 -0500
committerFeng Pan <fpan@redhat.com>2016-11-21 21:27:09 -0500
commit9326e4237f4d161f297dc4493ab4928ea6e2bf0f (patch)
tree25372fa964fe84b160c5bfc58304285902edbefc /manifests/config.pp
parentc70bea9fb9cd5dfb29d7ab8f7aaae7324c31f1e3 (diff)
Initial Commit.
Change-Id: I212ec4be42357edddd931e9e479e33131ccd4bac Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'manifests/config.pp')
-rw-r--r--manifests/config.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/config.pp b/manifests/config.pp
new file mode 100644
index 0000000..aeac676
--- /dev/null
+++ b/manifests/config.pp
@@ -0,0 +1,16 @@
+# == Class fdio::config
+#
+# This class handles fdio config changes.
+#
+class fdio::config {
+ file { '/etc/vpp/startup.conf':
+ content => template('fdio/startup.conf.erb'),
+ }
+
+ # ensure that dpdk module is loaded
+ exec { 'insert_dpdk_kmod':
+ command => "modprobe ${::fdio::vpp_dpdk_uio_driver}",
+ unless => "lsmod | grep ${::fdio::vpp_dpdk_uio_driver}",
+ path => '/bin:/sbin',
+ }
+}