mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-23 08:21:43 -04:00
facter vars no longer smush up against puppet command when prevent_sudo is true
This commit is contained in:
@@ -69,7 +69,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
|
||||
|
||||
// Set some defaults
|
||||
if p.config.ExecuteCommand == "" {
|
||||
p.config.ExecuteCommand = "{{.FacterVars}}{{if .Sudo}} sudo -E {{end}}" +
|
||||
p.config.ExecuteCommand = "{{.FacterVars}} {{if .Sudo}} sudo -E {{end}}" +
|
||||
"puppet apply --verbose --modulepath='{{.ModulePath}}' " +
|
||||
"{{if .HasHieraConfigPath}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
|
||||
"--detailed-exitcodes " +
|
||||
|
||||
Reference in New Issue
Block a user