generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inventory terraform_state - add support for backend_config_files and …
…update backend_config (#112) * add support for backend_config_files
- Loading branch information
Showing
21 changed files
with
352 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
tests/integration/targets/inventory_terraform_state_aws/templates/backend.hcl.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bucket = "{{ bucket_name }}" | ||
key = "ansible/terraform.tfstate" | ||
region = "{{ aws_region }}" |
7 changes: 7 additions & 0 deletions
7
tests/integration/targets/inventory_terraform_state_aws/templates/inventory.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
plugin: cloud.terraform.terraform_state | ||
backend_type: s3 | ||
backend_config: | ||
bucket: {{ bucket_name }} | ||
key: ansible/terraform.tfstate | ||
region: {{ aws_region }} |
4 changes: 4 additions & 0 deletions
4
...ation/targets/inventory_terraform_state_aws/templates/inventory_with_backend_files.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
plugin: cloud.terraform.terraform_state | ||
backend_type: s3 | ||
backend_config_files: {{ backend_config_files }} |
9 changes: 9 additions & 0 deletions
9
...integration/targets/inventory_terraform_state_aws/templates/inventory_with_compose.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
plugin: cloud.terraform.terraform_state | ||
backend_type: s3 | ||
backend_config: | ||
bucket: {{ bucket_name }} | ||
key: ansible/terraform.tfstate | ||
region: {{ aws_region }} | ||
compose: | ||
ansible_host: 'private_ip' |
12 changes: 12 additions & 0 deletions
12
...gration/targets/inventory_terraform_state_aws/templates/inventory_with_constructed.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
plugin: cloud.terraform.terraform_state | ||
backend_type: s3 | ||
backend_config: | ||
bucket: {{ bucket_name }} | ||
key: ansible/terraform.tfstate | ||
region: {{ aws_region }} | ||
keyed_groups: | ||
- key: instance_state | ||
prefix: state | ||
- prefix: tag | ||
key: tags |
11 changes: 11 additions & 0 deletions
11
...ntegration/targets/inventory_terraform_state_aws/templates/inventory_with_hostname.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
plugin: cloud.terraform.terraform_state | ||
backend_type: s3 | ||
backend_config: | ||
bucket: {{ bucket_name }} | ||
key: ansible/terraform.tfstate | ||
region: {{ aws_region }} | ||
hostnames: | ||
- name: 'tag:Name' | ||
separator: "-" | ||
prefix: 'instance_type' |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
8 changes: 0 additions & 8 deletions
8
tests/integration/targets/terraform_state/templates/inventory.yml.j2
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
tests/integration/targets/terraform_state/templates/inventory_with_compose.yml.j2
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
tests/integration/targets/terraform_state/templates/inventory_with_constructed.yml.j2
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
tests/integration/targets/terraform_state/templates/inventory_with_hostname.yml.j2
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.