2013-08-14 14:10:18 +00:00
|
|
|
# A general Vagrant system implementation for "solaris 11".
|
|
|
|
#
|
|
|
|
# Contributed by Jan Thomas Moldung <janth@moldung.no>
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestSolaris11
|
|
|
|
class Config < Vagrant.plugin("2", :config)
|
|
|
|
attr_accessor :halt_timeout
|
|
|
|
attr_accessor :halt_check_interval
|
|
|
|
# This sets the command to use to execute items as a superuser. sudo is default
|
|
|
|
attr_accessor :suexec_cmd
|
|
|
|
attr_accessor :device
|
|
|
|
|
|
|
|
def initialize
|
2014-05-01 16:03:49 +00:00
|
|
|
@halt_timeout = UNSET_VALUE
|
|
|
|
@halt_check_interval = UNSET_VALUE
|
2015-07-06 20:23:24 +00:00
|
|
|
@suexec_cmd = UNSET_VALUE
|
|
|
|
@device = UNSET_VALUE
|
2013-08-14 14:10:18 +00:00
|
|
|
end
|
2014-05-01 16:03:49 +00:00
|
|
|
|
|
|
|
def finalize!
|
|
|
|
if @halt_timeout != UNSET_VALUE
|
|
|
|
puts "solaris11.halt_timeout is deprecated and will be removed in Vagrant 1.7"
|
|
|
|
end
|
|
|
|
if @halt_check_interval != UNSET_VALUE
|
|
|
|
puts "solaris11.halt_check_interval is deprecated and will be removed in Vagrant 1.7"
|
|
|
|
end
|
2015-07-06 20:23:24 +00:00
|
|
|
|
|
|
|
@suexec_cmd = "sudo" if @suexec_cmd == UNSET_VALUE
|
|
|
|
@device = "net" if @device == UNSET_VALUE
|
2014-05-01 16:03:49 +00:00
|
|
|
end
|
2013-08-14 14:10:18 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|