Override Vagrant configuration settings locally (per-dev)

前端 未结 8 1312
说谎
说谎 2021-01-30 02:51

I\'d like the question to be answered in general, but to illustrate it, here\'s a use case:

I\'m using Vagrant for a simple LMAP project. I use standalone Puppet for pro

8条回答
  •  故里飘歌
    2021-01-30 03:33

    If you are prepared to define settings that are applied to all your vagrant boxes it's worth noting that, "Vagrant actually loads a series of Vagrantfiles, merging the settings as it goes." (ref https://docs.vagrantup.com/v2/vagrantfile/)

    So I have the following defined in ~/.vagrant.d/Vagrantfile to increase the amount of RAM for my Vagrant boxes:

    Vagrant.configure(2) do |config|
        config.vm.provider "virtualbox" do |vb|
          vb.memory = 2048
        end
    end
    

提交回复
热议问题