Topics
This major release drops support for ansible-core < 2.15
.
- Drop support for ansible-core < 2.15 (ansible-collections#138).
The cloud.terraform 2.1.0 release includes a new module to plan_stash
and a new inventory plugin terraform_state
.
- terraform_state - Builds an inventory from resources created by cloud providers.
- plan_stash - Handle the base64 encoding or decoding of a terraform plan file
- Remove support for ansible-core < 2.14 (ansible-collections#102).
- terraform_provider - Allow
project_path
in terraform_provider inventory plugin to accept a list of paths (ansible-collections#55). - terraform_provider - Added
search_child_modules
option (ansible-collections#55).
- Removed integration tests workaround in terrform_provider. (ansible-collections#84)
- Set default of
state_file
in terraform_provider inventory plugin to a blank string (ansible-collections#55). - terraform - add support for
workspace
when runningterraform output
(ansible-collections#85). - terraform - cleanup temporary file create during module execution. (ansible-collections#2)
- terraform_output - add support for
workspace
when runningterraform output
(ansible-collections#85). - tf_output - add support for
workspace
when runningterraform output
(ansible-collections#85).
- module_utils - Accept Terraform executables present on PATH passed in as
binary_path
without specifying their absolute path. (ansible-collections#49) - module_utils - Allow
nested_type
attribute in terraform schema. (ansible-collections#93) - module_utils - Fix AWS SQS queue creation. The
values
attribute in terraform output is optional. SQS is one of (rare) cases wherevalues
is absent. (ansible-collections#86) - move test requirements out of the requirements.txt file (ansible-collections#67).
- terraform - fix issue with
plan_file
option specified withcheck_mode=true
andstate
set to one ofpresent
andabsent
, the module is enable now to generate a Terraform file to the specified location (ansible-collections#87). - terraform - fix spaces between characters in command field in result (ansible-collections#76).
- Added the git_plan role to apply a Terraform plan stored in a Git repository.
- Added the inventory_from_outputs role to construct an in-memory inventory from Terraform outputs.
- Added the terraform_output module which parses values from terraform outputs.
- Check mode now works as intended and produces correct "changed" output and results.
- Inventory plugin cloud.terraform.terraform_provider added. (ansible-collections#22)
- Support diff mode in cloud.terraform.terraform both in check mode and in non-check mode. (ansible-collections#11)
- Terraform output lookup module added (ansible-collections#12).
- Removed "required_one_of" condition from terraform_output module. (ansible-collections#31).
- Slight code reorganization to always run terraform plan, and then optionally apply the generated plan.
- Terraform output lookup module - documentation for state_file option updated. (ansible-collections#29).
- git_plan and inventory_from_outputs role's argument_spec.yml updated to be able to generate documentation (ansible-collections#28)
- meta/runtime.yml - Drop space in requires_ansible that was preventing the upload on Galaxy (ansible-collections#8).
- state=planned is deprecated. Use check_mode=true at the module level instead.
- Integration tests to test support of AWS, Azure and GCP.
- Major refactoring of the cloud.terraform collection, restructuring and compartmentalizing code.
- Removed "mutually exclusive" condition for state_file and project_path in inventory_from_outputs role, since terraform_output module doesn't require this. (ansible-collections#39)
- Several integration tests were added to test end-to-end behaviour.
- Terraform module - fix now allows the possibility that the key "value" is not always present in the terraform plan thus avoiding KeyError. (ansible-collections#45)
- Terraform module - fix now expands the providers schema with block_types section so when checking if (block) attribute is sensitive in providers schema KeyError is now avoided. (ansible-collections#46)
- Terraform_output - fix now sets "outputs" variable to None in case of TerraformWarning to avoid undefined variable error. (ansible-collections#31)
- Type hints added to the cloud.terraform collection for easier future maintenance and reliability.
- Updated host and group name in cloud.terraform.terraform_provider inventory plugin. (ansible-collections#34)
- terraform_output module - when providing name and state_file parameters, the value of the requested output wasn't returned. This issue was solved by changing the order of the name and state parameters in the invoked Terraform command (ansible-collections#19).
- terraform_provider - Builds an inventory from Terraform state file.