provisioner/puppet-masterless: fix compile

This commit is contained in:
Mitchell Hashimoto 2013-12-11 13:22:00 -08:00
parent 4274d1fcc1
commit 10546f6aee
1 changed files with 2 additions and 2 deletions

View File

@ -75,8 +75,8 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
if p.config.ExecuteCommand == "" {
p.config.ExecuteCommand = "{{.FacterVars}} {{if .Sudo}} sudo -E {{end}}" +
"puppet apply --verbose --modulepath='{{.ModulePath}}' " +
"{{if .HieraConfigPath ne ""}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
"{{if .ManifestDir ne ""}}--manifestdir='{{.ManifestDir}}' {{end}}" +
"{{if .HieraConfigPath ne \"\"}}--hiera_config='{{.HieraConfigPath}}' {{end}}" +
"{{if .ManifestDir ne \"\"}}--manifestdir='{{.ManifestDir}}' {{end}}" +
"--detailed-exitcodes " +
"{{.ManifestFile}}"
}