Vagrantfile 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant.configure("2") do |config|
  4. # All Vagrant configuration is done here. The most common configuration
  5. # options are documented and commented below. For a complete reference,
  6. # please see the online documentation at vagrantup.com.
  7. config.vm.hostname = "conf-berkshelf"
  8. # Every Vagrant virtual environment requires a box to build off of.
  9. config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal"
  10. # The url from where the 'config.vm.box' box will be fetched if it
  11. # doesn't already exist on the user's system.
  12. config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
  13. # Assign this VM to a host-only network IP, allowing you to access it
  14. # via the IP. Host-only networks can talk to the host machine as well as
  15. # any other machines on the same network, but cannot be accessed (through this
  16. # network interface) by any external networks.
  17. config.vm.network :private_network, ip: "33.33.33.10"
  18. # Create a public network, which generally matched to bridged network.
  19. # Bridged networks make the machine appear as another physical device on
  20. # your network.
  21. # config.vm.network :public_network
  22. # Create a forwarded port mapping which allows access to a specific port
  23. # within the machine from a port on the host machine. In the example below,
  24. # accessing "localhost:8080" will access port 80 on the guest machine.
  25. # Share an additional folder to the guest VM. The first argument is
  26. # the path on the host to the actual folder. The second argument is
  27. # the path on the guest to mount the folder. And the optional third
  28. # argument is a set of non-required options.
  29. # config.vm.synced_folder "../data", "/vagrant_data"
  30. # Provider-specific configuration so you can fine-tune various
  31. # backing providers for Vagrant. These expose provider-specific options.
  32. # Example for VirtualBox:
  33. #
  34. # config.vm.provider :virtualbox do |vb|
  35. # # Don't boot with headless mode
  36. # vb.gui = true
  37. #
  38. # # Use VBoxManage to customize the VM. For example to change memory:
  39. # vb.customize ["modifyvm", :id, "--memory", "1024"]
  40. # end
  41. #
  42. # View the documentation for the provider you're using for more
  43. # information on available options.
  44. config.ssh.max_tries = 40
  45. config.ssh.timeout = 120
  46. # The path to the Berksfile to use with Vagrant Berkshelf
  47. # config.berkshelf.berksfile_path = "./Berksfile"
  48. # Enabling the Berkshelf plugin. To enable this globally, add this configuration
  49. # option to your ~/.vagrant.d/Vagrantfile file
  50. config.berkshelf.enabled = true
  51. # An array of symbols representing groups of cookbook described in the Vagrantfile
  52. # to exclusively install and copy to Vagrant's shelf.
  53. # config.berkshelf.only = []
  54. # An array of symbols representing groups of cookbook described in the Vagrantfile
  55. # to skip installing and copying to Vagrant's shelf.
  56. # config.berkshelf.except = []
  57. config.vm.provision :chef_solo do |chef|
  58. chef.json = {
  59. :mysql => {
  60. :server_root_password => 'rootpass',
  61. :server_debian_password => 'debpass',
  62. :server_repl_password => 'replpass'
  63. }
  64. }
  65. chef.run_list = [
  66. "recipe[conf::default]"
  67. ]
  68. end
  69. end