UNPKG

6.54 kBPlain TextView Raw
1# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4# All Vagrant configuration is done below. The "2" in Vagrant.configure
5# configures the configuration version (we support older styles for
6# backwards compatibility). Please don't change it unless you know what
7# you're doing.
8Vagrant.configure(2) do |config|
9 # The most common configuration options are documented and commented below.
10 # For a complete reference, please see the online documentation at
11 # vagrantup.com
12
13 # Every Vagrant virtual environment requires a box to build off of.
14 config.vm.box = "ubuntu/trusty64"
15
16 # Disable automatic box update checking. If you disable this, then
17 # boxes will only be checked for updates when the user runs
18 # `vagrant box outdated`. This is not recommended.
19 # config.vm.box_check_update = false
20
21 # Create a forwarded port mapping which allows access to a specific port
22 # within the machine from a port on the host machine. In the example below,
23 # accessing "localhost:8080" will access port 80 on the guest machine.
24 # config.vm.network "forwarded_port", guest: 80, host: 8080
25
26 # Create a private network, which allows host-only access to the machine
27 # using a specific IP.
28 # config.vm.network "private_network", ip: "192.168.33.10"
29
30 # Create a public network, which generally matched to bridged network.
31 # Bridged networks make the machine appear as another physical device on
32 # your network.
33 # config.vm.network "public_network"
34
35 # If true, then any SSH connections made will enable agent forwarding.
36 # Default value: false
37 # config.ssh.forward_agent = true
38
39 # Share an additional folder to the guest VM. The first argument is
40 # the path on the host to the actual folder. The second argument is
41 # the path on the guest to mount the folder. And the optional third
42 # argument is a set of non-required options.
43 # config.vm.synced_folder "../data", "/vagrant_data"
44
45 # Provider-specific configuration so you can fine-tune various
46 # backing providers for Vagrant. These expose provider-specific options.
47 # Example for VirtualBox:
48 #
49 # config.vm.provider "virtualbox" do |vb|
50 # # Don't boot with headless mode
51 # vb.gui = true
52 #
53 # # Use VBoxManage to customize the VM. For example to change memory:
54 # vb.customize ["modifyvm", :id, "--memory", "1024"]
55 # end
56 #
57 # View the documentation for the provider you're using for more
58 # information on available options.
59
60 # Enable provisioning with CFEngine. CFEngine Community packages are
61 # automatically installed. For example, configure the host as a
62 # policy server and optionally a policy file to run:
63 #
64 # config.vm.provision "cfengine" do |cf|
65 # cf.am_policy_hub = true
66 # # cf.run_file = "motd.cf"
67 # end
68 #
69 # You can also configure and bootstrap a client to an existing
70 # policy server:
71 #
72 # config.vm.provision "cfengine" do |cf|
73 # cf.policy_server_address = "10.0.2.15"
74 # end
75
76 # Enable provisioning with Puppet stand alone. Puppet manifests
77 # are contained in a directory path relative to this Vagrantfile.
78 # You will need to create the manifests directory and a manifest in
79 # the file default.pp in the manifests_path directory.
80 #
81 # config.vm.provision "puppet" do |puppet|
82 # puppet.manifests_path = "manifests"
83 # puppet.manifest_file = "default.pp"
84 # end
85
86 # Enable provisioning with Chef Solo, specifying a cookbooks path, roles
87 # path, and data_bags path (all relative to this Vagrantfile), and adding
88 # some recipes and/or roles.
89 #
90 # config.vm.provision "chef_solo" do |chef|
91 # chef.cookbooks_path = "~/chef/cookbooks"
92 # chef.roles_path = "~/chef/roles"
93 # chef.data_bags_path = "~/chef/data_bags"
94 #
95 # chef.add_recipe "mysql"
96 # chef.add_role "web"
97 #
98 # chef.json = { mysql_password: "foo" }
99 # end
100 #
101 # Chef Solo will automatically install the latest version of Chef for you.
102 # This can be configured in the provisioner block:
103 #
104 # config.vm.provision "chef_solo" do |chef|
105 # chef.version = "11.16.4"
106 # end
107 #
108 # Alternative you can disable the installation of Chef entirely:
109 #
110 # config.vm.provision "chef_solo" do |chef|
111 # chef.install = false
112 # end
113
114 # Enable provisioning with Chef Zero. The Chef Zero provisioner accepts the
115 # exact same parameter as the Chef Solo provisioner:
116 #
117 # config.vm.provision "chef_zero" do |chef|
118 # chef.cookbooks_path = "~/chef/cookbooks"
119 # chef.roles_path = "~/chef/roles"
120 # chef.data_bags_path = "~/chef/data_bags"
121 #
122 # chef.add_recipe "mysql"
123 # chef.add_role "web"
124 #
125 # # You may also specify custom JSON attributes:
126 # chef.json = { mysql_password: "foo" }
127 # end
128
129 # Enable provisioning with Chef Server, specifying the chef server URL,
130 # and the path to the validation key (relative to this Vagrantfile).
131 #
132 # The Hosted Chef platform uses HTTPS. Substitute your organization for
133 # ORGNAME in the URL and validation key.
134 #
135 # If you have your own Chef Server, use the appropriate URL, which may be
136 # HTTP instead of HTTPS depending on your configuration. Also change the
137 # validation key to validation.pem.
138 #
139 # config.vm.provision "chef_client" do |chef|
140 # chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
141 # chef.validation_key_path = "ORGNAME-validator.pem"
142 # end
143 #
144 # If you're using the Hosted Chef platform, your validator client is
145 # ORGNAME-validator, replacing ORGNAME with your organization name.
146 #
147 # If you have your own Chef Server, the default validation client name is
148 # chef-validator, unless you changed the configuration.
149 #
150 # chef.validation_client_name = "ORGNAME-validator"
151 #
152 # Chef Client will automatically install the latest version of Chef for you.
153 # This can be configured in the provisioner block:
154 #
155 # config.vm.provision "chef_client" do |chef|
156 # chef.version = "11.16.4"
157 # end
158 #
159 # Alternative you can disable the installation of Chef entirely:
160 #
161 # config.vm.provision "chef_client" do |chef|
162 # chef.install = false
163 # end
164
165 # Enable provisioning with Chef Apply, specifying an inline recipe to execute
166 # on the target system.
167 #
168 # config.vm.provision "chef_apply" do |chef|
169 # chef.recipe = <<-RECIPE
170 # package "curl"
171 # RECIPE
172 # end
173 #
174 # Chef Apply will automatically install the latest version of Chef for you.
175 # This can be configured in the provisioner block:
176 #
177 # config.vm.provision "chef_apply" do |chef|
178 # chef.version = "11.16.4"
179 # end
180end