-
-
Save anonymous/4e371d8fd860a4987cee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kernels = [ | |
{kernel=>"3.17.7", dpdk =>true}, | |
{kernel=>"3.17.7", dpdk =>false}, | |
{kernel=>"3.16.7", dpdk =>false}, | |
{kernel=>"3.14.27", dpdk =>false}, | |
{kernel=>"3.12.35", dpdk =>false}, | |
{kernel=>"3.10.63", dpdk =>false}, | |
{kernel=>"3.4.105", dpdk =>false}, | |
{kernel=>"2.6.32.65", dpdk =>false} | |
] | |
$script <<SCRIPT | |
echo "A script that takes $1 as Kernel Version and $2 as DPDK" | |
SCRIPT | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
for kernels.times do |k| | |
config.vm.define "fedora20-#{k["kernel"]}" do |fedora| | |
config.vm.provision "shell", args: "#{k["kernel"]} #{k["dpdk"]}" inline: $script | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment