Documentation ¶
Overview ¶
This package implements a provisioner for Packer that uses Chef to provision the remote machine, specifically with chef-client (that is, with a Chef server).
Index ¶
- Variables
- type Config
- type ConfigTemplate
- type EnvVarsTemplate
- type ExecuteTemplate
- type InstallChefTemplate
- type KnifeTemplate
- type Provisioner
- func (p *Provisioner) Communicator() packer.Communicator
- func (p *Provisioner) ElevatedPassword() string
- func (p *Provisioner) ElevatedUser() string
- func (p *Provisioner) Prepare(raws ...interface{}) error
- func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.Communicator) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigTemplate = `` /* 863-byte string literal not displayed */
View Source
var DefaultKnifeTemplate = `` /* 293-byte string literal not displayed */
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` Json map[string]interface{} ChefEnvironment string `mapstructure:"chef_environment"` ChefLicense string `mapstructure:"chef_license"` ClientKey string `mapstructure:"client_key"` ConfigTemplate string `mapstructure:"config_template"` ElevatedUser string `mapstructure:"elevated_user"` ElevatedPassword string `mapstructure:"elevated_password"` EncryptedDataBagSecretPath string `mapstructure:"encrypted_data_bag_secret_path"` ExecuteCommand string `mapstructure:"execute_command"` GuestOSType string `mapstructure:"guest_os_type"` InstallCommand string `mapstructure:"install_command"` KnifeCommand string `mapstructure:"knife_command"` NodeName string `mapstructure:"node_name"` PolicyGroup string `mapstructure:"policy_group"` PolicyName string `mapstructure:"policy_name"` PreventSudo bool `mapstructure:"prevent_sudo"` RunList []string `mapstructure:"run_list"` ServerUrl string `mapstructure:"server_url"` SkipCleanClient bool `mapstructure:"skip_clean_client"` SkipCleanNode bool `mapstructure:"skip_clean_node"` SkipCleanStagingDirectory bool `mapstructure:"skip_clean_staging_directory"` SkipInstall bool `mapstructure:"skip_install"` SslVerifyMode string `mapstructure:"ssl_verify_mode"` TrustedCertsDir string `mapstructure:"trusted_certs_dir"` StagingDir string `mapstructure:"staging_directory"` ValidationClientName string `mapstructure:"validation_client_name"` ValidationKeyPath string `mapstructure:"validation_key_path"` // contains filtered or unexported fields }
type ConfigTemplate ¶
type EnvVarsTemplate ¶ added in v1.3.4
type EnvVarsTemplate struct {
WinRMPassword string
}
type ExecuteTemplate ¶
type InstallChefTemplate ¶
type InstallChefTemplate struct {
Sudo bool
}
type KnifeTemplate ¶ added in v0.11.0
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
func (*Provisioner) Communicator ¶ added in v1.3.4
func (p *Provisioner) Communicator() packer.Communicator
func (*Provisioner) ElevatedPassword ¶ added in v1.3.4
func (p *Provisioner) ElevatedPassword() string
func (*Provisioner) ElevatedUser ¶ added in v1.3.4
func (p *Provisioner) ElevatedUser() string
func (*Provisioner) Prepare ¶
func (p *Provisioner) Prepare(raws ...interface{}) error
func (*Provisioner) Provision ¶
func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.Communicator) error
Click to show internal directories.
Click to hide internal directories.