Merge pull request #4946 from mitchellh/sethvargo/vagrantfile
Cleanup Vagrantfile
This commit is contained in:
commit
620d7894f3
|
@ -8,9 +8,10 @@
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
# The most common configuration options are documented and commented below.
|
# The most common configuration options are documented and commented below.
|
||||||
# For a complete reference, please see the online documentation at
|
# For a complete reference, please see the online documentation at
|
||||||
# vagrantup.com
|
# https://docs.vagrantup.com.
|
||||||
|
|
||||||
# Every Vagrant virtual environment requires a box to build off of.
|
# Every Vagrant development environment requires a box. You can search for
|
||||||
|
# boxes at https://atlas.hashicorp.com/search.
|
||||||
config.vm.box = "<%= box_name %>"
|
config.vm.box = "<%= box_name %>"
|
||||||
|
|
||||||
<% if box_url -%>
|
<% if box_url -%>
|
||||||
|
@ -38,10 +39,6 @@ Vagrant.configure(2) do |config|
|
||||||
# your network.
|
# your network.
|
||||||
# config.vm.network "public_network"
|
# config.vm.network "public_network"
|
||||||
|
|
||||||
# If true, then any SSH connections made will enable agent forwarding.
|
|
||||||
# Default value: false
|
|
||||||
# config.ssh.forward_agent = true
|
|
||||||
|
|
||||||
# Share an additional folder to the guest VM. The first argument is
|
# Share an additional folder to the guest VM. The first argument is
|
||||||
# the path on the host to the actual folder. The second argument is
|
# the path on the host to the actual folder. The second argument is
|
||||||
# the path on the guest to mount the folder. And the optional third
|
# the path on the guest to mount the folder. And the optional third
|
||||||
|
@ -53,134 +50,27 @@ Vagrant.configure(2) do |config|
|
||||||
# Example for VirtualBox:
|
# Example for VirtualBox:
|
||||||
#
|
#
|
||||||
# config.vm.provider "virtualbox" do |vb|
|
# config.vm.provider "virtualbox" do |vb|
|
||||||
# # Don't boot with headless mode
|
# # Display the VirtualBox GUI when booting the machine
|
||||||
# vb.gui = true
|
# vb.gui = true
|
||||||
#
|
#
|
||||||
# # Use VBoxManage to customize the VM. For example to change memory:
|
# # Customize the amount of memory on the VM:
|
||||||
# vb.customize ["modifyvm", :id, "--memory", "1024"]
|
# vb.memory = "1024"
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# View the documentation for the provider you're using for more
|
# View the documentation for the provider you are using for more
|
||||||
# information on available options.
|
# information on available options.
|
||||||
|
|
||||||
# Enable provisioning with CFEngine. CFEngine Community packages are
|
# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
|
||||||
# automatically installed. For example, configure the host as a
|
# such as FTP and Heroku are also available. See the documentation at
|
||||||
# policy server and optionally a policy file to run:
|
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
|
||||||
#
|
# config.push.define "atlas" do |push|
|
||||||
# config.vm.provision "cfengine" do |cf|
|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
|
||||||
# cf.am_policy_hub = true
|
|
||||||
# # cf.run_file = "motd.cf"
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# You can also configure and bootstrap a client to an existing
|
|
||||||
# policy server:
|
|
||||||
#
|
|
||||||
# config.vm.provision "cfengine" do |cf|
|
|
||||||
# cf.policy_server_address = "10.0.2.15"
|
|
||||||
# end
|
# end
|
||||||
|
|
||||||
# Enable provisioning with Puppet stand alone. Puppet manifests
|
# Enable provisioning with a shell script. Additional provisioners such as
|
||||||
# are contained in a directory path relative to this Vagrantfile.
|
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
||||||
# You will need to create the manifests directory and a manifest in
|
# documentation for more information about their specific syntax and use.
|
||||||
# the file default.pp in the manifests_path directory.
|
# config.vm.provision "shell", inline <<-SHELL
|
||||||
#
|
# sudo apt-get install apache2
|
||||||
# config.vm.provision "puppet" do |puppet|
|
# SHELL
|
||||||
# puppet.manifests_path = "manifests"
|
|
||||||
# puppet.manifest_file = "default.pp"
|
|
||||||
# end
|
|
||||||
|
|
||||||
# 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.cookbooks_path = "~/chef/cookbooks"
|
|
||||||
# chef.roles_path = "~/chef/roles"
|
|
||||||
# chef.data_bags_path = "~/chef/data_bags"
|
|
||||||
#
|
|
||||||
# chef.add_recipe "mysql"
|
|
||||||
# chef.add_role "web"
|
|
||||||
#
|
|
||||||
# chef.json = { mysql_password: "foo" }
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# Chef Solo will automatically install the latest version of Chef for you.
|
|
||||||
# This can be configured in the provisioner block:
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_solo" do |chef|
|
|
||||||
# chef.version = "11.16.4"
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# Alternative you can disable the installation of Chef entirely:
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_solo" do |chef|
|
|
||||||
# chef.install = false
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with Chef Zero. The Chef Zero provisioner accepts the
|
|
||||||
# exact same parameter as the Chef Solo provisioner:
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_zero" do |chef|
|
|
||||||
# chef.cookbooks_path = "~/chef/cookbooks"
|
|
||||||
# chef.roles_path = "~/chef/roles"
|
|
||||||
# chef.data_bags_path = "~/chef/data_bags"
|
|
||||||
#
|
|
||||||
# chef.add_recipe "mysql"
|
|
||||||
# chef.add_role "web"
|
|
||||||
#
|
|
||||||
# # You may also specify custom JSON attributes:
|
|
||||||
# chef.json = { mysql_password: "foo" }
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with Chef Server, specifying the chef server URL,
|
|
||||||
# and the path to the validation key (relative to this Vagrantfile).
|
|
||||||
#
|
|
||||||
# The Hosted Chef platform uses HTTPS. Substitute your organization for
|
|
||||||
# ORGNAME in the URL and validation key.
|
|
||||||
#
|
|
||||||
# If you have your own Chef Server, use the appropriate URL, which may be
|
|
||||||
# HTTP instead of HTTPS depending on your configuration. Also change the
|
|
||||||
# validation key to validation.pem.
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_client" do |chef|
|
|
||||||
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
|
|
||||||
# chef.validation_key_path = "ORGNAME-validator.pem"
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# If you're using the Hosted Chef platform, your validator client is
|
|
||||||
# ORGNAME-validator, replacing ORGNAME with your organization name.
|
|
||||||
#
|
|
||||||
# If you have your own Chef Server, the default validation client name is
|
|
||||||
# chef-validator, unless you changed the configuration.
|
|
||||||
#
|
|
||||||
# chef.validation_client_name = "ORGNAME-validator"
|
|
||||||
#
|
|
||||||
# Chef Client will automatically install the latest version of Chef for you.
|
|
||||||
# This can be configured in the provisioner block:
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_client" do |chef|
|
|
||||||
# chef.version = "11.16.4"
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# Alternative you can disable the installation of Chef entirely:
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_client" do |chef|
|
|
||||||
# chef.install = false
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Enable provisioning with Chef Apply, specifying an inline recipe to execute
|
|
||||||
# on the target system.
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_apply" do |chef|
|
|
||||||
# chef.recipe = <<-RECIPE
|
|
||||||
# package "curl"
|
|
||||||
# RECIPE
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# Chef Apply will automatically install the latest version of Chef for you.
|
|
||||||
# This can be configured in the provisioner block:
|
|
||||||
#
|
|
||||||
# config.vm.provision "chef_apply" do |chef|
|
|
||||||
# chef.version = "11.16.4"
|
|
||||||
# end
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
# -*- mode: ruby -*-
|
|
||||||
# vi: set ft=ruby :
|
|
||||||
|
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
config.vm.box = "<%= box_name %>"
|
config.vm.box = "<%= box_name %>"
|
||||||
<% if box_url -%>
|
<% if box_url -%>
|
||||||
|
|
Loading…
Reference in New Issue