Skip to content

Instantly share code, notes, and snippets.

Created January 16, 2015 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4e371d8fd860a4987cee to your computer and use it in GitHub Desktop.
Save anonymous/4e371d8fd860a4987cee to your computer and use it in GitHub Desktop.
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