Vagrantfile 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant::Config.run 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. # Every Vagrant virtual environment requires a box to build off of.
  8. config.vm.box = "quantal64_3.5.0-25"
  9. # The url from where the 'config.vm.box' box will be fetched if it
  10. # doesn't already exist on the user's system.
  11. config.vm.box_url = "http://get.docker.io/vbox/ubuntu/12.10/quantal64_3.5.0-25.box"
  12. # Boot with a GUI so you can see the screen. (Default is headless)
  13. # config.vm.boot_mode = :gui
  14. # Assign this VM to a host-only network IP, allowing you to access it
  15. # via the IP. Host-only networks can talk to the host machine as well as
  16. # any other machines on the same network, but cannot be accessed (through this
  17. # network interface) by any external networks.
  18. # config.vm.network :hostonly, "192.168.33.10"
  19. # Assign this VM to a bridged network, allowing you to connect directly to a
  20. # network using the host's network device. This makes the VM appear as another
  21. # physical device on your network.
  22. # config.vm.network :bridged
  23. # Forward a port from the guest to the host, which allows for outside
  24. # computers to access the VM, whereas host only networking does not.
  25. # config.vm.forward_port 80, 8080
  26. # Share an additional folder to the guest VM. The first argument is
  27. # an identifier, the second is the path on the guest to mount the
  28. # folder, and the third is the path on the host to the actual folder.
  29. config.vm.share_folder "v-data", "~/docker", "~/docker"
  30. # Enable provisioning with Puppet stand alone. Puppet manifests
  31. # are contained in a directory path relative to this Vagrantfile.
  32. # You will need to create the manifests directory and a manifest in
  33. # the file quantal64.pp in the manifests_path directory.
  34. #
  35. # An example Puppet manifest to provision the message of the day:
  36. #
  37. # # group { "puppet":
  38. # # ensure => "present",
  39. # # }
  40. # #
  41. # # File { owner => 0, group => 0, mode => 0644 }
  42. # #
  43. # # file { '/etc/motd':
  44. # # content => "Welcome to your Vagrant-built virtual machine!
  45. # # Managed by Puppet.\n"
  46. # # }
  47. #
  48. config.vm.provision :puppet do |puppet|
  49. puppet.manifests_path = "puppet/manifests"
  50. puppet.manifest_file = "quantal64.pp"
  51. puppet.module_path = "puppet/modules"
  52. end
  53. # Enable provisioning with chef solo, specifying a cookbooks path, roles
  54. # path, and data_bags path (all relative to this Vagrantfile), and adding
  55. # some recipes and/or roles.
  56. #
  57. # config.vm.provision :chef_solo do |chef|
  58. # chef.cookbooks_path = "../my-recipes/cookbooks"
  59. # chef.roles_path = "../my-recipes/roles"
  60. # chef.data_bags_path = "../my-recipes/data_bags"
  61. # chef.add_recipe "mysql"
  62. # chef.add_role "web"
  63. #
  64. # # You may also specify custom JSON attributes:
  65. # chef.json = { :mysql_password => "foo" }
  66. # end
  67. # Enable provisioning with chef server, specifying the chef server URL,
  68. # and the path to the validation key (relative to this Vagrantfile).
  69. #
  70. # The Opscode Platform uses HTTPS. Substitute your organization for
  71. # ORGNAME in the URL and validation key.
  72. #
  73. # If you have your own Chef Server, use the appropriate URL, which may be
  74. # HTTP instead of HTTPS depending on your configuration. Also change the
  75. # validation key to validation.pem.
  76. #
  77. # config.vm.provision :chef_client do |chef|
  78. # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  79. # chef.validation_key_path = "ORGNAME-validator.pem"
  80. # end
  81. #
  82. # If you're using the Opscode platform, your validator client is
  83. # ORGNAME-validator, replacing ORGNAME with your organization name.
  84. #
  85. # IF you have your own Chef Server, the default validation client name is
  86. # chef-validator, unless you changed the configuration.
  87. #
  88. # chef.validation_client_name = "ORGNAME-validator"
  89. end