From bbced21c36c68685908bdf245e6b04438e2193df Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 9 Aug 2013 14:11:13 -0700 Subject: [PATCH] common: PackerConfig understands user vars --- common/packer_config.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/packer_config.go b/common/packer_config.go index f51b92e0b..2ef86e582 100644 --- a/common/packer_config.go +++ b/common/packer_config.go @@ -4,7 +4,9 @@ package common // are sent by packer, properly tagged already so mapstructure can load // them. Embed this structure into your configuration class to get it. type PackerConfig struct { - PackerBuildName string `mapstructure:"packer_build_name"` - PackerDebug bool `mapstructure:"packer_debug"` - PackerForce bool `mapstructure:"packer_force"` + PackerBuildName string `mapstructure:"packer_build_name"` + PackerBuilderType string `mapstructure:"packer_builder_type"` + PackerDebug bool `mapstructure:"packer_debug"` + PackerForce bool `mapstructure:"packer_force"` + PackerUserVars map[string]string `mapstructure:"packer_user_variables"` }