|
|
|
|
@ -64,11 +64,15 @@ ENV['HTTPS_PROXY'] = "{{ .HTTPSProxy }}"
|
|
|
|
|
{{ if .SSLVerifyMode }}ssl_verify_mode {{ .SSLVerifyMode }}{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if .DisableReporting }}enable_reporting false{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if .ClientOptions }}{{ join .ClientOptions "\n" }}{{ end }}
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
// Provisioner represents a specificly configured chef provisioner
|
|
|
|
|
type Provisioner struct {
|
|
|
|
|
Attributes interface{} `mapstructure:"attributes"`
|
|
|
|
|
ClientOptions []string `mapstructure:"client_options"`
|
|
|
|
|
DisableReporting bool `mapstructure:"disable_reporting"`
|
|
|
|
|
Environment string `mapstructure:"environment"`
|
|
|
|
|
LogToFile bool `mapstructure:"log_to_file"`
|
|
|
|
|
UsePolicyfile bool `mapstructure:"use_policyfile"`
|
|
|
|
|
@ -86,7 +90,6 @@ type Provisioner struct {
|
|
|
|
|
ServerURL string `mapstructure:"server_url"`
|
|
|
|
|
SkipInstall bool `mapstructure:"skip_install"`
|
|
|
|
|
SSLVerifyMode string `mapstructure:"ssl_verify_mode"`
|
|
|
|
|
DisableReporting bool `mapstructure:"disable_reporting"`
|
|
|
|
|
ValidationClientName string `mapstructure:"validation_client_name"`
|
|
|
|
|
ValidationKey string `mapstructure:"validation_key"`
|
|
|
|
|
Version string `mapstructure:"version"`
|
|
|
|
|
|