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
terraform module: Added backend_config_file and multiple variables_file #394
Conversation
The test
The test
|
zuul fails with:
hmm.. so what should I do? It has nothing to do with my change! I think it is probably related to this latest commit : 7bb36d6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need a changelog fragment.
You can ignore the failing Zuul tests for now. |
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
specify type Co-authored-by: Felix Fontein <felix@fontein.de>
The test
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I don't know terraform though, so no idea whether this change works as expected and makes sense.
https://www.terraform.io/docs/backends/config.html#partial-configuration I have actually tested the module locally. BTW, Thanks Felix, you helped a lot. I've got familiar with how to create appropriate PRs for ansible modules (changelogs, sanity checks, etc). Future contributions are on the way :) |
|
That's the error in Zuul. The problem is that in the Zuul tests, the collection dependencies of community.general are not installed. Simply ignore the Zuul tests for now, right now they are not helpful at all. (On Shippable the same tests runs fine, because the dependencies are installed.) |
Aha. Ok, so what is the next step? Do I need to take extra steps for this PR to be merged? |
@m-yosefpor you need to find someone to review/test this who actually uses terraform. Maybe look at issues/PRs for terraform in this repo, there seem to be other people also interested in this module. |
@Andersson007 I wonder if you are the one person to review this PR. You are the only one who has committed regarding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@m-yosefpor hey, unfortunately i don't use terraform. We need somebody who can try this without learning the tool from scratch
CC @ryansb as the module's author could you please look at the changes? I'll text you by mail as well |
@Andersson007 Ryan used to work for Ansible, and switched jobs some time ago, so I'm not sure whether he's still interested. Especially since he is in the |
@effaamponsah @FrancisBilla you both created a PRs for the terraform module recently, so apparently you're also interested in it. |
@felixfontein ah, thanks for the info |
Added PR URL. Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
yeah!!! |
@FrancisBilla if the changes are ok for you, please, approve the PR and we'll merge it |
Does |
no |
i've just relaunched the tests to get rid of the label |
Looks good for me, @felixfontein and his team are in charge |
@m-yosefpor thanks for the contribution! |
merged #394 into master |
thank you too, for your welcoming community.. more one the way ;) |
SUMMARY
This PR adds support for multiple variables_file for "terraform" module, Fixes #224 issue. Moreover, this adds support for "backend_config_file" to provide at init state to the -backend-config parameter. This can accept a list of paths to multiple configuration files.
ISSUE TYPE
COMPONENT NAME
terraform module
ADDITIONAL INFORMATION
It is possible to pass multiple var-files in terraform cli:
This is required when there are multiple var-files in different locations.
Also the "-backend-config" parameter, accepts both "key=value" type and "PATH" type. This parameter can also be passed multiple backend config files: