Documentation
¶
Overview ¶
Package bsusurrogate contains a packer.Builder implementation that builds a new EBS-backed OMI using an ephemeral instance.
Index ¶
Constants ¶
View Source
const BuilderId = "oapi.outscale.bsusurrogate"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
common.PackerConfig `mapstructure:",squash"`
osccommon.AccessConfig `mapstructure:",squash"`
osccommon.RunConfig `mapstructure:",squash"`
osccommon.BlockDevices `mapstructure:",squash"`
osccommon.OMIConfig `mapstructure:",squash"`
RootDevice RootBlockDevice `mapstructure:"omi_root_device"`
VolumeRunTags osccommon.TagMap `mapstructure:"run_volume_tags"`
// contains filtered or unexported fields
}
type RootBlockDevice ¶
type RootBlockDevice struct {
SourceDeviceName string `mapstructure:"source_device_name"`
DeviceName string `mapstructure:"device_name"`
DeleteOnVmDeletion bool `mapstructure:"delete_on_vm_deletion"`
IOPS int64 `mapstructure:"iops"`
VolumeType string `mapstructure:"volume_type"`
VolumeSize int64 `mapstructure:"volume_size"`
}
func (*RootBlockDevice) Prepare ¶
func (c *RootBlockDevice) Prepare(ctx *interpolate.Context) []error
type StepRegisterOMI ¶
type StepRegisterOMI struct {
RootDevice RootBlockDevice
OMIDevices []oapi.BlockDeviceMappingImage
LaunchDevices []oapi.BlockDeviceMappingVmCreation
// contains filtered or unexported fields
}
StepRegisterOMI creates the OMI.
func (*StepRegisterOMI) Cleanup ¶
func (s *StepRegisterOMI) Cleanup(state multistep.StateBag)
func (*StepRegisterOMI) Run ¶
func (s *StepRegisterOMI) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
type StepSnapshotVolumes ¶
type StepSnapshotVolumes struct {
LaunchDevices []oapi.BlockDeviceMappingVmCreation
// contains filtered or unexported fields
}
StepSnapshotVolumes creates snapshots of the created volumes.
Produces:
snapshot_ids map[string]string - IDs of the created snapshots
func (*StepSnapshotVolumes) Cleanup ¶
func (s *StepSnapshotVolumes) Cleanup(state multistep.StateBag)
func (*StepSnapshotVolumes) Run ¶
func (s *StepSnapshotVolumes) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction
Click to show internal directories.
Click to hide internal directories.