-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.spec
91 lines (88 loc) · 3.78 KB
/
plugin.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
plugin_type: provision
entry_point: main.yaml
subparsers:
terraform:
description: Infrastracture as code provisioning.
include_groups: ["Ansible options", "Inventory", "Common options", "Answers file"]
groups:
- title: Ansible arguments
options:
hosts-pattern:
type: Value
help: |
Ansible hosts pattern.
Inventory can be provided to infrared from workspace or from parameter.
'--inventory' can be used to load an external inventory to the workspace.
"--ansible-args='inventory=/path/to/inventory'" can be used to use an external
inventory without loading to workspace.
Refer to: https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html
required: True
default: 'localhost'
ansible_variable: 'hosts_pattern'
use-remote-project:
type: Flag
help: |
Do not upload local project to remote host.
Only works when `ansible_host` is not equal to `localhost`
ansible_variable: use_remote_project
- title: Binary arguments
options:
binary-archive-url:
type: Value
help: |
URL to the terraform binary.
Every operating system and architecture has its own compiled binary.
Refer to: https://www.terraform.io/downloads
required: False
ansible_variable: 'binary_archive_url'
binary-archive-sha256-checksum:
type: Value
help: |
SHA256 checksum of terraform binary.
Refer to: https://www.terraform.io/downloads
required: False
ansible_variable: 'binary_archive_sha256_checksum'
- title: Terraform arguments
options:
state:
type: Value
help: |
Terraform infrastracture state.
required: yes
choices:
- present
- absent
ansible_variable: 'terraform_plan_state'
check-mode:
type: Flag
help: |
Flag to check terraform plan without applying it.
required: False
ansible_variable: 'terraform_check_mode'
project-path:
type: Value
help: |
Path to terraform project containing 'main.tf' file.
required: True
ansible_variable: 'terraform_project_path'
variables:
type: KeyValueList
help: |
Dictionary of terraform variables.
ansible_variable: 'terraform_plan_variables'
variables-files:
type: ListValue
help: |
List of files containing terraform variables.
ansible_variable: 'terraform_plan_variables_files'
backend-config:
type: KeyValueList
help: |
Dictionary of terraform backend configuration.
ansible_variable: 'terraform_backend_config'
backend-config-files:
type: ListValue
help: |
List of files containing terraform backend configuration.
ansible_variable: 'terraform_backend_config_files'