Skip to content

Instantly share code, notes, and snippets.

@sharnik
Created December 31, 2013 11:17
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 sharnik/8195445 to your computer and use it in GitHub Desktop.
Save sharnik/8195445 to your computer and use it in GitHub Desktop.
site :opscode
cookbook 'apt'
cookbook 'locale'
cookbook 'mysql'
require 'berkshelf/vagrant'
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise32"
# Use Berksfile
config.berkshelf.enabled = true
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
config.vm.provision :chef_solo do |chef|
chef.add_recipe 'apt'
chef.add_recipe 'locale'
chef.add_recipe 'mysql::client'
chef.json = {
'mysql' => {
'client' => {'packages' => ['mysql-client', 'libmysqlclient-dev','ruby-mysql']}
},
'locale' => {'lang' => 'en_US.utf8'}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment