This playbook installs DPDK and Seastar on an Intel NUC.
See my blog post on DPDK on an Intel NUC for step-by-step instructions of the various tasks defined in this playbook.
Ensure that you have installed Ansible on the host where you want to run the playbook from.
This playbook has been tested against Fedora 22.
To run the playbook against a host 192.168.1.100 (note the comma following the host name/IP address must be included):
$ git clone https://github.com/mixja/ansible-dpdk-seastar.git
...
...
$ cd ansible-dpdk-seastar
ansible-dpdk-seastar$ ansible-playbook -i "192.168.1.100," site.yml
SSH password: *******
PLAY [Provision Custom Facts] *************************************************
...
...
The group_vars/all
file contains the following variables:
dpdk_dir
- root folder of the DPDK sourcedpdk_build
- build folder for the DPDK sourcedpdk_repo
- Git repo of the DPDK sourceseastar_dir
- root folder of the Seastar sourceseastar_repo
- Git repo of the Seastar source
The following variables can be used to force a rebuild or build a different version:
seastar_rebuild
- if set to any value, forces Seastar to be built.seastar_version
- specifies the branch, tag or commit hash to build. If a change is detected from the current repo, Seastar will be rebuilt.dpdk_rebuild
- if set to any value, forces DPDK to be built.
The following example forces DPDK to be built:
$ ansible-playbook -i "192.168.1.100," site.yml --extra-vars "dpdk_rebuild=true"
The following example checks out Seastar commit 696ab29 to be checked out and forces a build of Seastar:
$ ansible-playbook -i "192.168.1.100," site.yml --extra-vars "seastar_rebuild=true seastar_version=696ab29"
After DPDK and Seastar are built you need to: