mode

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultUser is used if there is no user given
	DefaultUser = "root"

	// DefaultPort is used if there is no port given
	DefaultPort = 22

	// DefaultScriptPath is used as the path to copy the file to
	// for remote execution if not provided otherwise.
	DefaultScriptPath = "/tmp/terraform_%RAND%.sh"

	// DefaultTimeout is used if there is no timeout given
	DefaultTimeout = 5 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalMode

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

LocalMode represents local provisioner mode.

func NewLocalMode

func NewLocalMode(o terraform.UIOutput, s *terraform.InstanceState) (*LocalMode, error)

NewLocalMode returns configured local mode provisioner.

func (*LocalMode) ComputeResource

func (v *LocalMode) ComputeResource() bool

func (*LocalMode) Run

func (v *LocalMode) Run(plays []*types.Play, ansibleSSHSettings *types.AnsibleSSHSettings) error

Run executes local provisioning process.

type RemoteMode

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

RemoteMode represents remote provisioner mode.

func NewRemoteMode

func NewRemoteMode(o terraform.UIOutput, s *terraform.InstanceState, remoteSettings *types.RemoteSettings) (*RemoteMode, error)

NewRemoteMode returns configured remote mode provisioner.

func (*RemoteMode) Run

func (v *RemoteMode) Run(plays []*types.Play) error

Run executes remote provisioning process.

Jump to

Keyboard shortcuts

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