Skip to content

Instantly share code, notes, and snippets.

@tatsuya6502
Created April 15, 2014 07:21
Show Gist options
  • Save tatsuya6502/10709935 to your computer and use it in GitHub Desktop.
Save tatsuya6502/10709935 to your computer and use it in GitHub Desktop.
vagrant-kvm CentOS 6 + chef-solo provisioner
Vagrant.configure('2') do |config|
config.vm.hostname = 'centos6'
config.vm.box = 'centos-6.5'
config.vm.box_url = 'https://vagrant-kvm-boxes-si.s3.amazonaws.com/centos-6-amd64-kvm-20140413.box'
config.vm.provider :kvm do |kvm, override|
kvm.memory_size = '512MB'
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.auto_detect = true
end
config.vm.provision :chef_solo do |chef|
chef.add_recipe "yum"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment