Rob Ots
2018-11-13 21:13:29 UTC
Hi, I'm new to Vagrant and I'm wondering whether in the Vagrantfile I can
set config.winrm.timeout to a longer period for just one step?
node.vm.provision :shell do |s|
s.name = 'step A'
s.path = 'step_A.ps1'
end
node.vm.provision :shell do |s|
restore = config.winrm.timeout
config.winrm.timeout = 6000
s.name = 'step B'
s.path = 'step_B.ps1'
config.winrm.timeout = restore
end
node.vm.provision :shell do |s|
s.name = 'step C'
s.path = 'step_C.ps1'
end
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1fad8ef0-db33-4d29-87f8-77a15a256141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
set config.winrm.timeout to a longer period for just one step?
node.vm.provision :shell do |s|
s.name = 'step A'
s.path = 'step_A.ps1'
end
node.vm.provision :shell do |s|
restore = config.winrm.timeout
config.winrm.timeout = 6000
s.name = 'step B'
s.path = 'step_B.ps1'
config.winrm.timeout = restore
end
node.vm.provision :shell do |s|
s.name = 'step C'
s.path = 'step_C.ps1'
end
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1fad8ef0-db33-4d29-87f8-77a15a256141%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.