Add the new graceful_halt settings to `config.vm`
This commit is contained in:
parent
e1f4e27b1b
commit
1bf08f70d6
|
@ -13,6 +13,8 @@ Vagrant.configure("2") do |config|
|
|||
config.vm.usable_port_range = (2200..2250)
|
||||
config.vm.box_url = nil
|
||||
config.vm.base_mac = nil
|
||||
config.vm.graceful_halt_retry_count = 60
|
||||
config.vm.graceful_halt_retry_interval = 1
|
||||
config.vm.guest = :linux
|
||||
|
||||
# Share SSH locally by default
|
||||
|
|
|
@ -15,6 +15,8 @@ module VagrantPlugins
|
|||
attr_accessor :base_mac
|
||||
attr_accessor :box
|
||||
attr_accessor :box_url
|
||||
attr_accessor :graceful_halt_retry_count
|
||||
attr_accessor :graceful_halt_retry_interval
|
||||
attr_accessor :guest
|
||||
attr_accessor :host_name
|
||||
attr_accessor :usable_port_range
|
||||
|
@ -25,10 +27,12 @@ module VagrantPlugins
|
|||
attr_reader :provisioners
|
||||
|
||||
def initialize
|
||||
@forwarded_ports = []
|
||||
@shared_folders = {}
|
||||
@networks = []
|
||||
@provisioners = []
|
||||
@forwarded_ports = []
|
||||
@graceful_halt_retry_count = UNSET_VALUE
|
||||
@graceful_halt_retry_interval = UNSET_VALUE
|
||||
@shared_folders = {}
|
||||
@networks = []
|
||||
@provisioners = []
|
||||
|
||||
# The providers hash defaults any key to a provider object
|
||||
@providers = Hash.new do |hash, key|
|
||||
|
|
Loading…
Reference in New Issue