Skip to content

Commit c14d0ec

Browse files
authored
Prepare relase 1.1.0 (#47) (#48)
* Prepare relase 1.1.0 * add documentation
1 parent 882289b commit c14d0ec

27 files changed

+1129
-4303
lines changed

CHANGELOG.rst

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
1-
Will be updated by antsibull-changelog. Do not edit this manually!
1+
============================================
2+
The cloud.terraform collection Release Notes
3+
============================================
24

3-
See https://github.com/ansible-community/antsibull-changelog/blob/main/docs/changelogs.rst for information on how to use antsibull-changelog.
5+
.. contents:: Topics
46

5-
Check out ``changelogs/config.yaml`` for its configuration. You need to change at least the ``title`` field in there.
7+
8+
v1.1.0
9+
======
10+
11+
Major Changes
12+
-------------
13+
14+
- Added the git_plan role to apply a Terraform plan stored in a Git repository.
15+
- Added the inventory_from_outputs role to construct an in-memory inventory from Terraform outputs.
16+
- Added the terraform_output module which parses values from terraform outputs.
17+
- Check mode now works as intended and produces correct "changed" output and results.
18+
- Inventory plugin cloud.terraform.terraform_provider added. (https://github.com/ansible-collections/cloud.terraform/pull/22)
19+
- Support diff mode in cloud.terraform.terraform both in check mode and in non-check mode. (https://github.com/ansible-collections/cloud.terraform/pull/11)
20+
- Terraform output lookup module added (https://github.com/ansible-collections/cloud.terraform/pull/12).
21+
22+
Minor Changes
23+
-------------
24+
25+
- Removed "required_one_of" condition from terraform_output module. (https://github.com/ansible-collections/cloud.terraform/pull/31).
26+
- Slight code reorganization to always run terraform plan, and then optionally apply the generated plan.
27+
- Terraform output lookup module - documentation for state_file option updated. (https://github.com/ansible-collections/cloud.terraform/pull/29).
28+
- git_plan and inventory_from_outputs role's argument_spec.yml updated to be able to generate documentation (https://github.com/ansible-collections/cloud.terraform/pull/28)
29+
- meta/runtime.yml - Drop space in requires_ansible that was preventing the upload on Galaxy (https://github.com/ansible-collections/cloud.terraform/pull/8).
30+
31+
Deprecated Features
32+
-------------------
33+
34+
- state=planned is deprecated. Use check_mode=true at the module level instead.
35+
36+
Bugfixes
37+
--------
38+
39+
- Integration tests to test support of AWS, Azure and GCP.
40+
- Major refactoring of the cloud.terraform collection, restructuring and compartmentalizing code.
41+
- Removed "mutually exclusive" condition for state_file and project_path in inventory_from_outputs role, since terraform_output module doesn't require this. (https://github.com/ansible-collections/cloud.terraform/pull/39)
42+
- Several integration tests were added to test end-to-end behaviour.
43+
- Terraform module - fix now allows the possibility that the key "value" is not always present in the terraform plan thus avoiding KeyError. (https://github.com/ansible-collections/cloud.terraform/pull/45)
44+
- 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. (https://github.com/ansible-collections/cloud.terraform/pull/46)
45+
- Terraform_output - fix now sets "outputs" variable to None in case of TerraformWarning to avoid undefined variable error. (https://github.com/ansible-collections/cloud.terraform/pull/31)
46+
- Type hints added to the cloud.terraform collection for easier future maintenance and reliability.
47+
- Updated host and group name in cloud.terraform.terraform_provider inventory plugin. (https://github.com/ansible-collections/cloud.terraform/pull/34)
48+
- 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 (https://github.com/ansible-collections/cloud.terraform/pull/19).
49+
50+
New Plugins
51+
-----------
52+
53+
Inventory
54+
~~~~~~~~~
55+
56+
- terraform_provider - Builds an inventory from Terraform state file.

README.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,21 @@ This collection requires Ansible Core 2.13 or later and thus Python 3.8 or later
2626

2727
## Included content
2828
<!--start collection content-->
29-
### Modules
29+
### Inventory plugins
3030
Name | Description
3131
--- | ---
32-
[cloud.terraform.terraform](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.terraform_module.rst)|Manages a Terraform deployment (and plans)
33-
[cloud.terraform.terraform_output](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.terraform_output_module.rst)|Returns Terraform module outputs.
32+
[cloud.terraform.terraform_provider](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.terraform_provider_inventory.rst)|Builds an inventory from Terraform state file.
3433

35-
### Lookup
34+
### Lookup plugins
3635
Name | Description
3736
--- | ---
3837
[cloud.terraform.tf_output](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.tf_output_lookup.rst)|Reads state file outputs.
3938

40-
### Inventory
41-
Name | Description
42-
--- | ---
43-
[cloud.terraform.terraform_provider](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.terraform_provider_inventory.rst)|Builds an inventory from Terraform state file.
44-
45-
### Roles
39+
### Modules
4640
Name | Description
4741
--- | ---
48-
[cloud.terraform.git_plan](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.git_plan_role.rst)|Clones a Git repository and applys a plan from it.
49-
[cloud.terraform.inventory_from_outputs](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.inventory_from_outputs_role.rst)|Creates an in-memory inventory from Terraform outputs.
42+
[cloud.terraform.terraform](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.terraform_module.rst)|Manages a Terraform deployment (and plans)
43+
[cloud.terraform.terraform_output](https://github.com/ansible-collections/cloud.terraform/blob/main/docs/cloud.terraform.terraform_output_module.rst)|Returns Terraform module outputs.
5044

5145
<!--end collection content-->
5246

@@ -70,7 +64,7 @@ A specific version of the collection can be installed by using the `version` key
7064
---
7165
collections:
7266
- name: cloud.terraform
73-
version: 1.0.0
67+
version: 1.1.0
7468
```
7569

7670
## Using this collection
@@ -139,3 +133,4 @@ GNU General Public License v3.0 or later.
139133

140134
See [LICENSE](https://github.com/ansible-collections/cloud.terraform/blob/main/LICENSE) to see the full text.
141135

136+

changelogs/changelog.yaml

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,72 @@
1-
releases: {}
1+
ancestor: null
2+
releases:
3+
1.1.0:
4+
changes:
5+
bugfixes:
6+
- Integration tests to test support of AWS, Azure and GCP.
7+
- Major refactoring of the cloud.terraform collection, restructuring and compartmentalizing
8+
code.
9+
- Removed "mutually exclusive" condition for state_file and project_path in
10+
inventory_from_outputs role, since terraform_output module doesn't require
11+
this. (https://github.com/ansible-collections/cloud.terraform/pull/39)
12+
- Several integration tests were added to test end-to-end behaviour.
13+
- Terraform module - fix now allows the possibility that the key "value" is
14+
not always present in the terraform plan thus avoiding KeyError. (https://github.com/ansible-collections/cloud.terraform/pull/45)
15+
- Terraform module - fix now expands the providers schema with block_types section
16+
so when checking if (block) attribute is sensitive in providers schema KeyError
17+
is now avoided. (https://github.com/ansible-collections/cloud.terraform/pull/46)
18+
- Terraform_output - fix now sets "outputs" variable to None in case of TerraformWarning
19+
to avoid undefined variable error. (https://github.com/ansible-collections/cloud.terraform/pull/31)
20+
- Type hints added to the cloud.terraform collection for easier future maintenance
21+
and reliability.
22+
- Updated host and group name in cloud.terraform.terraform_provider inventory
23+
plugin. (https://github.com/ansible-collections/cloud.terraform/pull/34)
24+
- terraform_output module - when providing name and state_file parameters, the
25+
value of the requested output wasn't returned. This issue was solved by changing
26+
the order of the name and state parameters in the invoked Terraform command
27+
(https://github.com/ansible-collections/cloud.terraform/pull/19).
28+
deprecated_features:
29+
- state=planned is deprecated. Use check_mode=true at the module level instead.
30+
major_changes:
31+
- Added the git_plan role to apply a Terraform plan stored in a Git repository.
32+
- Added the inventory_from_outputs role to construct an in-memory inventory
33+
from Terraform outputs.
34+
- Added the terraform_output module which parses values from terraform outputs.
35+
- Check mode now works as intended and produces correct "changed" output and
36+
results.
37+
- Inventory plugin cloud.terraform.terraform_provider added. (https://github.com/ansible-collections/cloud.terraform/pull/22)
38+
- Support diff mode in cloud.terraform.terraform both in check mode and in non-check
39+
mode. (https://github.com/ansible-collections/cloud.terraform/pull/11)
40+
- Terraform output lookup module added (https://github.com/ansible-collections/cloud.terraform/pull/12).
41+
minor_changes:
42+
- Removed "required_one_of" condition from terraform_output module. (https://github.com/ansible-collections/cloud.terraform/pull/31).
43+
- Slight code reorganization to always run terraform plan, and then optionally
44+
apply the generated plan.
45+
- Terraform output lookup module - documentation for state_file option updated.
46+
(https://github.com/ansible-collections/cloud.terraform/pull/29).
47+
- git_plan and inventory_from_outputs role's argument_spec.yml updated to be
48+
able to generate documentation (https://github.com/ansible-collections/cloud.terraform/pull/28)
49+
- meta/runtime.yml - Drop space in requires_ansible that was preventing the
50+
upload on Galaxy (https://github.com/ansible-collections/cloud.terraform/pull/8).
51+
fragments:
52+
- 0001-initial.yml
53+
- 10-zuul-integration-tests.yml
54+
- add_diff_mode_for_state_file.yaml
55+
- change_name_and_state_order_in_terraform_command.yaml
56+
- drop_sapce_in_requires_ansible.yaml
57+
- inventory_from_outputs_bugfix.yaml
58+
- refactoring.yaml
59+
- terraform_module_sensitive_values_bugfix.yaml
60+
- terraform_module_show_values_bugfix.yaml
61+
- terraform_output_module.yaml
62+
- terraform_provider_inventory_plugin.yaml
63+
- terraform_provider_update_host_and_group_name.yaml
64+
- tf_output_lookup_module.yaml
65+
- tf_output_lookup_module_documentation_update.yaml
66+
- update_documentation.yaml
67+
plugins:
68+
inventory:
69+
- description: Builds an inventory from Terraform state file.
70+
name: terraform_provider
71+
namespace: null
72+
release_date: '2023-03-23'

changelogs/fragments/0001-initial.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

changelogs/fragments/10-zuul-integration-tests.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelogs/fragments/add_diff_mode_for_state_file.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelogs/fragments/change_name_and_state_order_in_terraform_command.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelogs/fragments/drop_sapce_in_requires_ansible.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelogs/fragments/inventory_from_outputs_bugfix.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

changelogs/fragments/refactoring.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)