Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate template parameter for cloudformation #2048

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Apr 10, 2024

SUMMARY

The cloudformation module currently directly uses open() to access files passed using the template parameter. This can be better handled by using template_body and getting folks to use {{ lookup() }}.

The current open based implementation doesn't look in the places that folks might expect to find their files, and doesn't handle templating. In the event folks aren't delegating everything to localhost, this can also result in files simply not being available.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

cloudformation

ADDITIONAL INFORMATION

Copy link

github-actions bot commented Apr 10, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

@tremble tremble marked this pull request as ready for review April 10, 2024 08:37
Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/aa164051f3554c828659692d574ddebd

✔️ ansible-galaxy-importer SUCCESS in 5m 31s
✔️ build-ansible-collection SUCCESS in 16m 29s
✔️ ansible-test-splitter SUCCESS in 7m 31s
✔️ integration-amazon.aws-1 SUCCESS in 20m 09s
✔️ integration-community.aws-1 SUCCESS in 10m 05s
✔️ integration-community.aws-2 SUCCESS in 9m 41s
Skipped 41 jobs

@tremble tremble requested a review from hakbailey April 10, 2024 09:57
@tremble tremble added backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory) labels Apr 10, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/6a2ea16c8b934d55b5d183e2044586ff

✔️ ansible-galaxy-importer SUCCESS in 5m 56s
✔️ build-ansible-collection SUCCESS in 16m 53s
✔️ ansible-test-splitter SUCCESS in 6m 19s
✔️ integration-amazon.aws-1 SUCCESS in 16m 44s
Skipped 43 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 5281e89 into ansible-collections:main Apr 10, 2024
34 of 41 checks passed
Copy link

patchback bot commented Apr 10, 2024

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/5281e89f531aade8df17bb0e730002b86d82c048/pr-2048

Backported as #2051

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Apr 10, 2024
Deprecate template parameter for cloudformation

SUMMARY
The cloudformation module currently directly uses open() to access files passed using the template parameter.  This can be better handled by using template_body and getting folks to use {{ lookup() }}.
The current open based implementation doesn't look in the places that folks might expect to find their files, and doesn't handle templating.  In the event folks aren't delegating everything to localhost, this can also result in files simply not being available.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
cloudformation
ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
(cherry picked from commit 5281e89)
softwarefactory-project-zuul bot pushed a commit that referenced this pull request Apr 11, 2024
[PR #2048/5281e89f backport][stable-7] Deprecate template parameter for cloudformation

This is a backport of PR #2048 as merged into main (5281e89).
SUMMARY
The cloudformation module currently directly uses open() to access files passed using the template parameter.  This can be better handled by using template_body and getting folks to use {{ lookup() }}.
The current open based implementation doesn't look in the places that folks might expect to find their files, and doesn't handle templating.  In the event folks aren't delegating everything to localhost, this can also result in files simply not being available.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
cloudformation
ADDITIONAL INFORMATION

Reviewed-by: Mark Chappell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 PR should be backported to the stable-7 branch mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants