Documentation
¶
Index ¶
Constants ¶
View Source
const BuilderId = "packer.oracle.classic"
BuilderId uniquely identifies the builder
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
Artifact is an artifact implementation that contains Image List and Machine Image info.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is a builder implementation that creates Oracle OCI custom images.
type Config ¶
type Config struct {
common.PackerConfig `mapstructure:",squash"`
PVConfig `mapstructure:",squash"`
Comm communicator.Config `mapstructure:",squash"`
// Access config overrides
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
IdentityDomain string `mapstructure:"identity_domain"`
APIEndpoint string `mapstructure:"api_endpoint"`
// Image
ImageName string `mapstructure:"image_name"`
Shape string `mapstructure:"shape"`
SourceImageList string `mapstructure:"source_image_list"`
SourceImageListEntry int `mapstructure:"source_image_list_entry"`
SnapshotTimeout time.Duration `mapstructure:"snapshot_timeout"`
DestImageList string `mapstructure:"dest_image_list"`
// Attributes and Attributes file are both optional and mutually exclusive.
Attributes string `mapstructure:"attributes"`
AttributesFile string `mapstructure:"attributes_file"`
// Optional; if you don't enter anything, the image list description
// will read "Packer-built image list"
DestImageListDescription string `mapstructure:"image_description"`
// Optional. Describes what computers are allowed to reach your instance
// via SSH. This whitelist must contain the computer you're running Packer
// from. It defaults to public-internet, meaning that you can SSH into your
// instance from anywhere as long as you have the right keys
SSHSourceList string `mapstructure:"ssh_source_list"`
// contains filtered or unexported fields
}
func (*Config) Identifier ¶ added in v1.3.3
type PVConfig ¶ added in v1.3.3
type PVConfig struct {
// PersistentVolumeSize lets us control the volume size by using persistent boot storage
PersistentVolumeSize int `mapstructure:"persistent_volume_size"`
BuilderUploadImageCommand string `mapstructure:"builder_upload_image_command"`
// Builder Image
BuilderShape string `mapstructure:"builder_shape"`
BuilderImageList string `mapstructure:"builder_image_list"`
BuilderImageListEntry *int `mapstructure:"builder_image_list_entry"`
BuilderComm communicator.Config `mapstructure:"builder_communicator"`
}
func (*PVConfig) IsPV ¶ added in v1.3.3
IsPV tells us if we're using a persistent volume for this build
func (*PVConfig) Prepare ¶ added in v1.3.3
func (c *PVConfig) Prepare(ctx *interpolate.Context) (errs *packer.MultiError)
Source Files
¶
- artifact.go
- builder.go
- config.go
- log.go
- pv_config.go
- step_add_keys.go
- step_attach_volume.go
- step_connect_builder.go
- step_create_image.go
- step_create_instance.go
- step_create_ip_reservation.go
- step_create_persistent_volume.go
- step_create_pv_builder.go
- step_create_pv_master.go
- step_list_images.go
- step_security.go
- step_snapshot.go
- step_terminate_pv_master.go
- step_upload_image.go
Click to show internal directories.
Click to hide internal directories.