Documentation ¶
Overview ¶
The linode package contains a packer.Builder implementation that builds Linode images.
Index ¶
Constants ¶
View Source
const BuilderID = "packer.linode"
The unique ID for this builder.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder represents a Packer Builder.
type Config ¶
type Config struct { common.PackerConfig `mapstructure:",squash"` Comm communicator.Config `mapstructure:",squash"` PersonalAccessToken string `mapstructure:"linode_token"` Region string `mapstructure:"region"` InstanceType string `mapstructure:"instance_type"` Label string `mapstructure:"instance_label"` Tags []string `mapstructure:"instance_tags"` Image string `mapstructure:"image"` SwapSize int `mapstructure:"swap_size"` RootPass string `mapstructure:"root_pass"` RootSSHKey string `mapstructure:"root_ssh_key"` ImageLabel string `mapstructure:"image_label"` Description string `mapstructure:"image_description"` RawStateTimeout string `mapstructure:"state_timeout"` // contains filtered or unexported fields }
type StepCreateSSHKey ¶
StepCreateSSHKey represents a Packer build step that generates SSH key pairs.
func (*StepCreateSSHKey) Cleanup ¶
func (s *StepCreateSSHKey) Cleanup(state multistep.StateBag)
Nothing to clean up. SSH keys are associated with a single Linode instance.
func (*StepCreateSSHKey) Run ¶
func (s *StepCreateSSHKey) Run(_ context.Context, state multistep.StateBag) multistep.StepAction
Run executes the Packer build step that generates SSH key pairs. The key pairs are added to the ssh config
Click to show internal directories.
Click to hide internal directories.