Commit 4d241b96 authored by Kelsey Hightower's avatar Kelsey Hightower

Define the default staging dir using a const var

parent 365f356a
......@@ -8,6 +8,8 @@ import (
"path/filepath"
)
const DefaultStagingDir = "/tmp/packer-provisioner-ansible-local"
type Config struct {
common.PackerConfig `mapstructure:",squash"`
tpl *packer.ConfigTemplate
......@@ -47,7 +49,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
errs := common.CheckUnusedConfig(md)
if p.config.StagingDir == "" {
p.config.StagingDir = "/tmp/packer-provisioner-ansible-local"
p.config.StagingDir = DefaultStagingDir
}
// Templates
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment