Vagrantfile 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
  4. VAGRANTFILE_API_VERSION = "2"
  5. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  6. # All Vagrant configuration is done here. The most common configuration
  7. # options are documented and commented below. For a complete reference,
  8. # please see the online documentation at vagrantup.com.
  9. # Every Vagrant virtual environment requires a box to build off of.
  10. config.vm.box = "ubuntu/trusty64"
  11. config.vm.provision :shell, path: "provision_vagrant.sh"
  12. # The url from where the 'config.vm.box' box will be fetched if it
  13. # doesn't already exist on the user's system.
  14. # config.vm.box_url = "http://domain.com/path/to/above.box"
  15. # Create a forwarded port mapping which allows access to a specific port
  16. # within the machine from a port on the host machine. In the example below,
  17. # accessing "localhost:8080" will access port 80 on the guest machine.
  18. # config.vm.network :forwarded_port, guest: 80, host: 8080
  19. # Create a private network, which allows host-only access to the machine
  20. # using a specific IP.
  21. # config.vm.network :private_network, ip: "192.168.33.10"
  22. # Create a public network, which generally matched to bridged network.
  23. # Bridged networks make the machine appear as another physical device on
  24. # your network.
  25. # config.vm.network :public_network
  26. # If true, then any SSH connections made will enable agent forwarding.
  27. # Default value: false
  28. # config.ssh.forward_agent = true
  29. # Share an additional folder to the guest VM. The first argument is
  30. # the path on the host to the actual folder. The second argument is
  31. # the path on the guest to mount the folder. And the optional third
  32. # argument is a set of non-required options.
  33. # config.vm.synced_folder "../data", "/vagrant_data"
  34. # Provider-specific configuration so you can fine-tune various
  35. # backing providers for Vagrant. These expose provider-specific options.
  36. # Example for VirtualBox:
  37. #
  38. config.vm.provider :virtualbox do |vb|
  39. # # Don't boot with headless mode
  40. # vb.gui = true
  41. #
  42. # # Use VBoxManage to customize the VM. For example to change memory:
  43. vb.customize ["modifyvm", :id, "--memory", "1024"]
  44. end
  45. #
  46. # View the documentation for the provider you're using for more
  47. # information on available options.
  48. # Enable provisioning with Puppet stand alone. Puppet manifests
  49. # are contained in a directory path relative to this Vagrantfile.
  50. # You will need to create the manifests directory and a manifest in
  51. # the file base.pp in the manifests_path directory.
  52. #
  53. # An example Puppet manifest to provision the message of the day:
  54. #
  55. # # group { "puppet":
  56. # # ensure => "present",
  57. # # }
  58. # #
  59. # # File { owner => 0, group => 0, mode => 0644 }
  60. # #
  61. # # file { '/etc/motd':
  62. # # content => "Welcome to your Vagrant-built virtual machine!
  63. # # Managed by Puppet.\n"
  64. # # }
  65. #
  66. # config.vm.provision :puppet do |puppet|
  67. # puppet.manifests_path = "manifests"
  68. # puppet.manifest_file = "site.pp"
  69. # end
  70. # Enable provisioning with chef solo, specifying a cookbooks path, roles
  71. # path, and data_bags path (all relative to this Vagrantfile), and adding
  72. # some recipes and/or roles.
  73. #
  74. # config.vm.provision :chef_solo do |chef|
  75. # chef.cookbooks_path = "../my-recipes/cookbooks"
  76. # chef.roles_path = "../my-recipes/roles"
  77. # chef.data_bags_path = "../my-recipes/data_bags"
  78. # chef.add_recipe "mysql"
  79. # chef.add_role "web"
  80. #
  81. # # You may also specify custom JSON attributes:
  82. # chef.json = { :mysql_password => "foo" }
  83. # end
  84. # Enable provisioning with chef server, specifying the chef server URL,
  85. # and the path to the validation key (relative to this Vagrantfile).
  86. #
  87. # The Opscode Platform uses HTTPS. Substitute your organization for
  88. # ORGNAME in the URL and validation key.
  89. #
  90. # If you have your own Chef Server, use the appropriate URL, which may be
  91. # HTTP instead of HTTPS depending on your configuration. Also change the
  92. # validation key to validation.pem.
  93. #
  94. # config.vm.provision :chef_client do |chef|
  95. # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
  96. # chef.validation_key_path = "ORGNAME-validator.pem"
  97. # end
  98. #
  99. # If you're using the Opscode platform, your validator client is
  100. # ORGNAME-validator, replacing ORGNAME with your organization name.
  101. #
  102. # If you have your own Chef Server, the default validation client name is
  103. # chef-validator, unless you changed the configuration.
  104. #
  105. # chef.validation_client_name = "ORGNAME-validator"
  106. end