provisioners/puppet: update config to new style
This commit is contained in:
parent
8f1d33b5c9
commit
57c25a26ad
|
@ -7,9 +7,21 @@ module VagrantPlugins
|
|||
attr_accessor :options
|
||||
attr_accessor :facter
|
||||
|
||||
def facter; @facter ||= {}; end
|
||||
def puppet_server; @puppet_server || "puppet"; end
|
||||
def options; @options ||= []; end
|
||||
def initialize
|
||||
super
|
||||
|
||||
@facter = {}
|
||||
@options = []
|
||||
@puppet_node = UNSET_VALUE
|
||||
@puppet_server = UNSET_VALUE
|
||||
end
|
||||
|
||||
def finalize!
|
||||
super
|
||||
|
||||
@puppet_node = nil if @puppet_node == UNSET_VALUE
|
||||
@puppet_server = "puppet" if @puppet_server == UNSET_VALUE
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue