templates/vagrant/Vagrantfile.erb in vagrant-orchestrate-0.0.7 vs templates/vagrant/Vagrantfile.erb in vagrant-orchestrate-0.1.0
- old
+ new
@@ -5,10 +5,14 @@
required_plugins.each do |plugin|
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin
end
<% end %>
Vagrant.configure("2") do |config|
+ # This disables up, provision, reload, and destroy for managed servers. Use
+ # `vagrant orchestrate push` to communicate with managed servers.
+ config.orchestrate.filter_managed_commands = true
+
<% if provisioners.include? "shell" -%>
<% shell_paths.each do |path| -%>
config.vm.provision "shell", path: "<%= path %>"
<% end -%>
<% if shell_inline -%>
@@ -42,12 +46,16 @@
config.winrm.username = "<%= winrm_username %>"
config.winrm.password = "<%= winrm_password %>"
config.winrm.transport = :sspinegotiate
<% end -%>
+ config.vm.define "local", primary: true do |local|
+ local.vm.box = "ubuntu/trusty64"
+ end
+
managed_servers.each do |instance|
- config.vm.define "managed-#{instance}" do |box|
- box.vm.box = "tknerr/managed-server-dummy"
+ config.vm.define instance, autostart: false do |box|
+ box.vm.box = "managed-server-dummy"
box.vm.box_url = "./dummy.box"
box.vm.provider :managed do |provider|
provider.server = instance
end
end