provisioners/puppet: update config to new style

This commit is contained in:
Mitchell Hashimoto 2013-11-25 14:32:36 -08:00
parent 8f1d33b5c9
commit 57c25a26ad
1 changed files with 15 additions and 3 deletions

View File

@ -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