summaryrefslogtreecommitdiffstats
path: root/manifests/config.pp
blob: aeac676045652b588c648ba52649b8c992bab65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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',
  }
}