suppose have 2 provision blocks defined machine
config.vm.provision 'a', type: 'file', source: 'foo', destination: '/opt/foo' end config.vm.provision 'b', type: 'file', source: 'bar', destination: '/opt/bar' end you can provision machine each of them running
vagrant provision --provision-with x where x either or b.
how select default provisioner when run
vagrant provision a use case skip provisioner b , run provisioner if vagrant provision executed. in advance!
Comments
Post a Comment