Fix regression bug reported in #5339
This commit is contained in:
parent
fc1ce68bff
commit
948f955758
|
@ -79,7 +79,7 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{
|
||||||
stagingDir: "/tmp/packer-puppet-masterless",
|
stagingDir: "/tmp/packer-puppet-masterless",
|
||||||
executeCommand: "cd {{.WorkingDir}} && " +
|
executeCommand: "cd {{.WorkingDir}} && " +
|
||||||
"{{.FacterVars}} {{if .Sudo}} sudo -E {{end}}" +
|
"{{.FacterVars}} {{if .Sudo}} sudo -E {{end}}" +
|
||||||
"puppet apply --verbose --modulepath='{{.ModulePath}}' " +
|
"{{if ne .PuppetBinDir \"\"}}{{.PuppetBinDir}}/{{end}}puppet apply --verbose --modulepath='{{.ModulePath}}' " +
|
||||||
"{{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
|
"{{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
|
||||||
"{{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}}" +
|
"{{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}}" +
|
||||||
"--detailed-exitcodes " +
|
"--detailed-exitcodes " +
|
||||||
|
@ -92,7 +92,7 @@ var guestOSTypeConfigs = map[string]guestOSTypeConfig{
|
||||||
stagingDir: "C:/Windows/Temp/packer-puppet-masterless",
|
stagingDir: "C:/Windows/Temp/packer-puppet-masterless",
|
||||||
executeCommand: "cd {{.WorkingDir}} && " +
|
executeCommand: "cd {{.WorkingDir}} && " +
|
||||||
"{{.FacterVars}} && " +
|
"{{.FacterVars}} && " +
|
||||||
"puppet apply --verbose --modulepath='{{.ModulePath}}' " +
|
"{{if ne .PuppetBinDir \"\"}}{{.PuppetBinDir}}/{{end}}puppet apply --verbose --modulepath='{{.ModulePath}}' " +
|
||||||
"{{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
|
"{{if ne .HieraConfigPath \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
|
||||||
"{{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}}" +
|
"{{if ne .ManifestDir \"\"}}--manifestdir='{{.ManifestDir}}' {{end}}" +
|
||||||
"--detailed-exitcodes " +
|
"--detailed-exitcodes " +
|
||||||
|
|
Loading…
Reference in New Issue