0
하나의 Vagrantfile에 여러 개의 상자가 구성되어 있습니다. 이 특정 구성 명령을 반복하지 않도록 코드를 건조 할 수있는 좋은 방법은 무엇입니까, 예를 들면 :Vagrant의 기본 설정
Vagrant::Config.run do |config|
config.vm.define 'box1' do |c|
c.box = "precise64"
end
config.vm.define 'box2' do |c|
c.box = "precise64"
end
end
내가 대신이 일을하고 싶습니다 : 나는
Vagrant::Config.defaults[:box] = 'precise64'
config.vm.define 'box1' do |c|
end
config.vm.define 'box2' do |c|
end