Vagrantfile 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 = "pkgng-berkshelf"
  8. # Every Vagrant virtual environment requires a box to build off of.
  9. config.vm.box = "freebsd-9.1-amd64"
  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.dropboxusercontent.com/u/25355402/freebsd-9.1-amd64.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. config.vm.synced_folder ".", "/vagrant", nfs: true
  31. # Provider-specific configuration so you can fine-tune various
  32. # backing providers for Vagrant. These expose provider-specific options.
  33. # Example for VirtualBox:
  34. #
  35. # config.vm.provider :virtualbox do |vb|
  36. # # Don't boot with headless mode
  37. # vb.gui = true
  38. #
  39. # # Use VBoxManage to customize the VM. For example to change memory:
  40. # vb.customize ["modifyvm", :id, "--memory", "1024"]
  41. # end
  42. #
  43. # View the documentation for the provider you're using for more
  44. # information on available options.
  45. config.ssh.max_tries = 40
  46. config.ssh.timeout = 120
  47. # The path to the Berksfile to use with Vagrant Berkshelf
  48. # config.berkshelf.berksfile_path = "./Berksfile"
  49. # Enabling the Berkshelf plugin. To enable this globally, add this configuration
  50. # option to your ~/.vagrant.d/Vagrantfile file
  51. config.berkshelf.enabled = true
  52. # An array of symbols representing groups of cookbook described in the Vagrantfile
  53. # to exclusively install and copy to Vagrant's shelf.
  54. # config.berkshelf.only = []
  55. # An array of symbols representing groups of cookbook described in the Vagrantfile
  56. # to skip installing and copying to Vagrant's shelf.
  57. # config.berkshelf.except = []
  58. config.vm.provision :chef_solo do |chef|
  59. chef.json = {
  60. :mysql => {
  61. :server_root_password => 'rootpass',
  62. :server_debian_password => 'debpass',
  63. :server_repl_password => 'replpass'
  64. }
  65. }
  66. chef.run_list = [
  67. "recipe[pkgng::default]"
  68. ]
  69. chef.nfs = true
  70. end
  71. end