|
| 1 | +# -*- mode: ruby -*- |
| 2 | +# vi: set ft=ruby : |
| 3 | + |
| 4 | +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! |
| 5 | +VAGRANTFILE_API_VERSION = "2" |
| 6 | + |
| 7 | +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
| 8 | + config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" # Prevent TTY Errors |
| 9 | + |
| 10 | + config.vm.box = "bento/ubuntu-16.04" |
| 11 | + |
| 12 | + # config.vm.box_check_update = false |
| 13 | + |
| 14 | + config.vm.network "private_network", ip: "192.168.33.44" |
| 15 | + # config.vm.network "public_network" |
| 16 | + |
| 17 | + # If true, then any SSH connections made will enable agent forwarding. |
| 18 | + # Default value: false |
| 19 | + # config.ssh.forward_agent = true |
| 20 | + |
| 21 | + config.vm.synced_folder ".", "/home/vagrant/php-v8" |
| 22 | + |
| 23 | + # Provider-specific configuration so you can fine-tune various |
| 24 | + # backing providers for Vagrant. These expose provider-specific options. |
| 25 | + # Example for VirtualBox: |
| 26 | + # |
| 27 | + config.vm.provider "virtualbox" do |vb| |
| 28 | + # Don't boot with headless mode |
| 29 | + # vb.gui = true |
| 30 | + |
| 31 | + # Use VBoxManage to customize the VM. For example to change memory: |
| 32 | + vb.customize ["modifyvm", :id, "--memory", 2048] |
| 33 | + vb.customize ["modifyvm", :id, "--cpus", 2] |
| 34 | + end |
| 35 | + # |
| 36 | + # View the documentation for the provider you're using for more |
| 37 | + # information on available options. |
| 38 | + |
| 39 | + # Enable provisioning with CFEngine. CFEngine Community packages are |
| 40 | + # automatically installed. For example, configure the host as a |
| 41 | + # policy server and optionally a policy file to run: |
| 42 | + # |
| 43 | + # config.vm.provision "cfengine" do |cf| |
| 44 | + # cf.am_policy_hub = true |
| 45 | + # # cf.run_file = "motd.cf" |
| 46 | + # end |
| 47 | + # |
| 48 | + # You can also configure and bootstrap a client to an existing |
| 49 | + # policy server: |
| 50 | + # |
| 51 | + # config.vm.provision "cfengine" do |cf| |
| 52 | + # cf.policy_server_address = "10.0.2.15" |
| 53 | + # end |
| 54 | + |
| 55 | + # Enable provisioning with Puppet stand alone. Puppet manifests |
| 56 | + # are contained in a directory path relative to this Vagrantfile. |
| 57 | + # You will need to create the manifests directory and a manifest in |
| 58 | + # the file default.pp in the manifests_path directory. |
| 59 | + # |
| 60 | + # config.vm.provision "puppet" do |puppet| |
| 61 | + # puppet.manifests_path = "manifests" |
| 62 | + # puppet.manifest_file = "default.pp" |
| 63 | + # end |
| 64 | + |
| 65 | + # Enable provisioning with chef solo, specifying a cookbooks path, roles |
| 66 | + # path, and data_bags path (all relative to this Vagrantfile), and adding |
| 67 | + # some recipes and/or roles. |
| 68 | + # |
| 69 | + # config.vm.provision "chef_solo" do |chef| |
| 70 | + # chef.cookbooks_path = "../my-recipes/cookbooks" |
| 71 | + # chef.roles_path = "../my-recipes/roles" |
| 72 | + # chef.data_bags_path = "../my-recipes/data_bags" |
| 73 | + # chef.add_recipe "mysql" |
| 74 | + # chef.add_role "web" |
| 75 | + # |
| 76 | + # # You may also specify custom JSON attributes: |
| 77 | + # chef.json = { mysql_password: "foo" } |
| 78 | + # end |
| 79 | + |
| 80 | + #config.vm.provision "shell", path: './provision/provision.sh', privileged: false |
| 81 | +end |
0 commit comments