bsusurrogate

package
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2019 License: MPL-2.0 Imports: 16 Imported by: 0

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 Builder

type Builder struct {
	// contains filtered or unexported fields
}

func (*Builder) Prepare

func (b *Builder) Prepare(raws ...interface{}) ([]string, error)

func (*Builder) Run

func (b *Builder) Run(ctx context.Context, ui packer.Ui, hook packer.Hook) (packer.Artifact, error)

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL