diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 0000000..b59768b --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,21 @@ +--- +name: Changelog +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + types: + - opened + - reopened + - labeled + - unlabeled + - synchronize + branches: + - main + - stable-* + +jobs: + changelog: + uses: ansible-network/github_actions/.github/workflows/changelog.yml@main diff --git a/README.md b/README.md index 1691237..689adf8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Terraform Provider for Ansible -The Terraform Provider for Ansible provides a more straightforward and robust means of executing Ansible automation from Terraform than local-exec. Paired with the inventory plugin in [the Ansible cloud.terraform collection](https://github.com/ansible-collections/cloud.terraform), users can run Ansible playbooks and roles on infrastructure provisioned by Terraform. The provider also includes integrated ansible-vault support. +The Terraform Provider for Ansible provides a more straightforward and robust means of executing Ansible automation from Terraform than local-exec. Paired with the inventory plugin in [the Ansible cloud.terraform collection](https://github.com/ansible-collections/cloud.terraform), users can run Ansible playbooks and roles on infrastructure provisioned by Terraform. The provider also includes integrated ansible-vault support. This provider can be [found in the Terraform Registry here](https://registry.terraform.io/providers/ansible/ansible/latest). @@ -56,15 +56,20 @@ make test ### Examples The [examples](./examples/) subdirectory contains a usage example for this provider. +## Release notes + +See the [generated changelog](https://github.com/ansible/terraform-provider-ansible/tree/main/CHANGELOG.rst). + ## Releasing To release a new version of the provider: 1. Update the version number in https://github.com/ansible/terraform-provider-ansible/blob/main/examples/provider/provider.tf 2. Run `go generate` to regenerate docs -3. Commit changes -4. Push a new tag (this should trigger an automated release process to the Terraform Registry) -5. Verify the new version is published at https://registry.terraform.io/providers/ansible/ansible/latest +3. Run `antsibull-changelog release --version ` to release a new version of the project. +4. Commit changes +5. Push a new tag (this should trigger an automated release process to the Terraform Registry) +6. Verify the new version is published at https://registry.terraform.io/providers/ansible/ansible/latest ## Licensing diff --git a/changelogs/config.yaml b/changelogs/config.yaml new file mode 100644 index 0000000..06ba5e7 --- /dev/null +++ b/changelogs/config.yaml @@ -0,0 +1,33 @@ +changelog_filename_template: ../CHANGELOG.rst +changelog_filename_version_depth: 0 +changes_file: changelog.yaml +changes_format: combined +ignore_other_fragment_extensions: true +is_other_project: true +keep_fragments: false +mention_ancestor: true +new_plugins_after_name: removed_features +notesdir: fragments +prelude_section_name: release_summary +prelude_section_title: Release Summary +sanitize_changelog: true +sections: +- - major_changes + - Major Changes +- - minor_changes + - Minor Changes +- - breaking_changes + - Breaking Changes / Porting Guide +- - deprecated_features + - Deprecated Features +- - removed_features + - Removed Features (previously deprecated) +- - security_fixes + - Security Fixes +- - bugfixes + - Bugfixes +- - known_issues + - Known Issues +title: The Terraform Provider for Ansible +trivial_section_name: trivial +use_semantic_versioning: true diff --git a/changelogs/fragments/.keep b/changelogs/fragments/.keep new file mode 100644 index 0000000..e69de29 diff --git a/changelogs/fragments/aws_example.yml b/changelogs/fragments/aws_example.yml new file mode 100644 index 0000000..542fb5b --- /dev/null +++ b/changelogs/fragments/aws_example.yml @@ -0,0 +1,2 @@ +trivial: + - "Added aws example to create ec2 instance with terraform and install nginx with ansible (https://github.com/ansible/terraform-provider-ansible/pull/9)." diff --git a/changelogs/fragments/gplv3_licensing.yml b/changelogs/fragments/gplv3_licensing.yml new file mode 100644 index 0000000..5c0eed4 --- /dev/null +++ b/changelogs/fragments/gplv3_licensing.yml @@ -0,0 +1,2 @@ +trivial: + - "Add GPLv3 licensing (https://github.com/ansible/terraform-provider-ansible/issues/36)." diff --git a/changelogs/fragments/inventory_race_conditions.yml b/changelogs/fragments/inventory_race_conditions.yml new file mode 100644 index 0000000..c6a0e1a --- /dev/null +++ b/changelogs/fragments/inventory_race_conditions.yml @@ -0,0 +1,2 @@ +bugfixes: + - provider/resource_playbook - Fix race condition between multiple ansible_playbook resources (https://github.com/ansible/terraform-provider-ansible/issues/38). diff --git a/changelogs/fragments/update_dependencies.yml b/changelogs/fragments/update_dependencies.yml new file mode 100644 index 0000000..4a1198c --- /dev/null +++ b/changelogs/fragments/update_dependencies.yml @@ -0,0 +1,2 @@ +minor_changes: + - "Update dependencies (google.golang.org/grpc and golang.org/x/net) to resolve security alerts https://github.com/ansible/terraform-provider-ansible/security/dependabot (https://github.com/ansible/terraform-provider-ansible/pull/72)." diff --git a/changelogs/fragments/use_sdkv2.yml b/changelogs/fragments/use_sdkv2.yml new file mode 100644 index 0000000..62ac47b --- /dev/null +++ b/changelogs/fragments/use_sdkv2.yml @@ -0,0 +1,2 @@ +minor_changes: + - "Updates the provider to use SDKv2 (https://github.com/ansible/terraform-provider-ansible/issues/39)."