Correct default path to facter and indentaion
This commit is contained in:
parent
770d927ba1
commit
bfb66f3166
|
@ -124,15 +124,15 @@ module VagrantPlugins
|
|||
# Build up the structured custom facts if we have any
|
||||
# With structured facts on, we assume the config.facter is yaml.
|
||||
if config.structured_facts && !config.facter.empty?
|
||||
@facter_config_path = "/etc/facter/facts.d/vagrant_facts.yaml"
|
||||
@facter_config_path = "/etc/puppetlabs/facter/facts.d/vagrant_facts.yaml"
|
||||
if windows?
|
||||
@facter_config_path = "/ProgramData/PuppetLabs/facter/facts.d/vagrant_facts.yaml"
|
||||
end
|
||||
t = Tempfile.new("vagrant_facts.yaml")
|
||||
t.write(config.facter)
|
||||
t.write(config.facter)
|
||||
t.close()
|
||||
@machine.communicate.upload(t.path, @facter_config_path)
|
||||
end
|
||||
end
|
||||
|
||||
run_puppet_apply
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue