Skip to content

Latest commit

 

History

History
381 lines (179 loc) · 7.38 KB

REFERENCE.md

File metadata and controls

381 lines (179 loc) · 7.38 KB

Reference

Table of Contents

Classes

Tasks

Plans

Classes

bolt_pe

Class: bolt_pe

Tasks

get_targets_from_node_groups

This task reads node groups from PE console and returns an array of nodes being part of the node group

Supports noop? false

Parameters

node_group

Data type: String

Name of the node group

terrafom_apply

Apply an HCL manifest

Supports noop? false

Parameters

dir

Data type: Optional[String[1]]

Path to Terraform project directory. Path is relative to CWD, unless an absolute path is specified.

state

Data type: Optional[String[1]]

Path to read and save state. Defaults to "terraform.tfstate". Path is relative to "dir"

target

Data type: Optional[Variant[String[1], Array[String[1]]]]

Resource to target. Operation will be limited to this resource and its dependencies. Accepts a single resource string or an array of resources

var

Data type: Optional[Hash]

Set Terraform variables, expects a hash with key value pairs representing variables and values.

var_file

Data type: Optional[Variant[String[1], Array[String[1]]]]

Set variables in the Terraform configuration from a file. Path is relative to "dir". Accepts a single var-file path or an array of paths

state_out

Data type: Optional[String[1]]

Path to write state to that is different than "state". This can be used to preserve the old state.

terrafom_destroy

Destroy resources managed with Terraform

Supports noop? false

Parameters

dir

Data type: Optional[String[1]]

Path to Terraform project directory. Path is relative to CWD, unless an absolute path is specified.

state

Data type: Optional[String[1]]

Path to read and save state. Defaults to "terraform.tfstate", Path is relative to "dir"

target

Data type: Optional[Variant[String[1], Array[String[1]]]]

Resource to target. Operation will be limited to this resource and its dependencies. Accepts a single resource string or an array of resources

var

Data type: Optional[Hash]

Set Terraform variables, expects a hash with key value pairs representing variables and values.

var_file

Data type: Optional[Variant[String[1], Array[String[1]]]]

Set variables in the Terraform configuration from a file. Path is relative to "dir". Accepts a single var-file path or an array of paths

state_out

Data type: Optional[String[1]]

Path to write state to that is different than "state". This can be used to preserve the old state.

terrafom_initialize

Initialize a Terraform project directory

Supports noop? false

Parameters

dir

Data type: Optional[String[1]]

Path to Terraform project directory. Path is relative to CWD, unless an absolute path is specified.

terrafom_output

JSON representation of Terraform outputs

Supports noop? false

Parameters

dir

Data type: Optional[String[1]]

Path to Terraform project directory. Path is relative to CWD, unless an absolute path is specified.

state

Data type: Optional[String[1]]

Path to read and save state. Defaults to "terraform.tfstate", Path is relative to "dir"

terrafom_resolve_reference

Generate targets from Terraform Statefile

Supports noop? false

Parameters

dir

Data type: String[1]

resource_type

Data type: String[1]

state

Data type: Optional[String[1]]

backend

Data type: Optional[String[1]]

target_mapping

Data type: Hash

Plans

bolt_pe::get_node_groups

get all node groups and print to stdout

Parameters

The following parameters are available in the bolt_pe::get_node_groups plan:

node_group

Data type: Enum['All Nodes', 'Production Environment']

puppet_server

Data type: String

bolt_pe::terraform_apply

The bolt_pe::terraform_apply class.

Parameters

The following parameters are available in the bolt_pe::terraform_apply plan:

dir

Data type: Optional[String[1]]

Default value: undef

state

Data type: Optional[String[1]]

Default value: undef

state_out

Data type: Optional[String[1]]

Default value: undef

target

Data type: Optional[Variant[String[1], Array[String[1]]]]

Default value: undef

var

Data type: Optional[Hash]

Default value: undef

var_file

Data type: Optional[Variant[String[1], Array[String[1]]]]

Default value: undef

return_output

Data type: Optional[Boolean]

Default value: false

terraform_host

Data type: TargetSpec

bolt_pe::terraform_destroy

The bolt_pe::terraform_destroy class.

Parameters

The following parameters are available in the bolt_pe::terraform_destroy plan:

dir

Data type: Optional[String[1]]

Default value: undef

state

Data type: Optional[String[1]]

Default value: undef

state_out

Data type: Optional[String[1]]

Default value: undef

target

Data type: Optional[Variant[String[1], Array[String[1]]]]

Default value: undef

var

Data type: Optional[Hash]

Default value: undef

var_file

Data type: Optional[Variant[String[1], Array[String[1]]]]

Default value: undef

terraform_host

Data type: TargetSpec