-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Allow terraform module to specify complex variable structures #4797
Commits on Aug 23, 2022
-
Adding capability to specify complex variables type to terraform
* Terrform variable types are mapped to ansible veriable types * Currently handles Dict, List, Str, Int, Bool types * Updated the documentation accordingly * Updated with an example.
Configuration menu - View commit details
-
Copy full SHA for ab08a48 - Browse repository at this point
Copy the full SHA ab08a48View commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 921414a - Browse repository at this point
Copy the full SHA 921414aView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 50888d2 - Browse repository at this point
Copy the full SHA 50888d2View commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cbdad6b - Browse repository at this point
Copy the full SHA cbdad6bView commit details -
Update plugins/modules/cloud/misc/terraform.py
Wonder how that missed the PEP8 checks :). Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 760e85e - Browse repository at this point
Copy the full SHA 760e85eView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8680f57 - Browse repository at this point
Copy the full SHA 8680f57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52b1de1 - Browse repository at this point
Copy the full SHA 52b1de1View commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f35b78 - Browse repository at this point
Copy the full SHA 0f35b78View commit details -
Adding
integer_types
frommodule_utils
Simplified the ``integer_types``, ``str`` and ``float`` value population through ``json.dumps()``. Now the strings can have special characters which can break the module execution.
Configuration menu - View commit details
-
Copy full SHA for 7252ec1 - Browse repository at this point
Copy the full SHA 7252ec1View commit details -
Update changelogs/fragments/4797-terraform-complex-variables.yml
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85c58f5 - Browse repository at this point
Copy the full SHA 85c58f5View commit details -
* Changed to approach to make the code more readble and simple to un…
…derstand. * Maintaining the original for loop for the top_level variables. Therefore the rocess_conplex_args() now only handle second level variables when the type() is either Dict or List. * Json dumps are used only for the low level variables. Terraform CLI had issues interpreting escape sequecences from json.dumps()
Configuration menu - View commit details
-
Copy full SHA for 217795c - Browse repository at this point
Copy the full SHA 217795cView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d9d468b - Browse repository at this point
Copy the full SHA d9d468bView commit details -
adding boolean explicitly, although boolean is a subclass of integer,…
… adding this for self documentation pupose and the clarity of the code.
Configuration menu - View commit details
-
Copy full SHA for 5a8c29f - Browse repository at this point
Copy the full SHA 5a8c29fView commit details -
Configuration menu - View commit details
-
Copy full SHA for eefbae9 - Browse repository at this point
Copy the full SHA eefbae9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 960c902 - Browse repository at this point
Copy the full SHA 960c902View commit details -
* Introducing format_args funtion to simplify formatting each argumen…
…t type for top_level and lower level. * Terraform Lists of strings, numbers, objects and lists are supported. * Adding COMMAND: to the fail_json msg, for plan failures to help troubleshoot command line arguments.
Configuration menu - View commit details
-
Copy full SHA for c73f2ac - Browse repository at this point
Copy the full SHA c73f2acView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b941e4 - Browse repository at this point
Copy the full SHA 0b941e4View commit details -
* Adding full terraform command to fail_json() when the terrafor pla…
…n fails * Fixing a spelling mistake.
Configuration menu - View commit details
-
Copy full SHA for 1e13d3a - Browse repository at this point
Copy the full SHA 1e13d3aView commit details
Commits on Aug 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 7d57fa3 - Browse repository at this point
Copy the full SHA 7d57fa3View commit details
Commits on Sep 7, 2022
-
* Fixing the new line for the change fragments
* Removed CR (\r) from the output messages. Now output lines carry only LF (\n), not CRLF (\r\n). * Added integration testing for complex variables. * Restructured integration testing code to be more expandable.
Configuration menu - View commit details
-
Copy full SHA for 267ff86 - Browse repository at this point
Copy the full SHA 267ff86View commit details
Commits on Sep 19, 2022
-
Update changelogs/fragments/4797-terraform-complex-variables.yml
Co-authored-by: Alexei Znamensky <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24ef92f - Browse repository at this point
Copy the full SHA 24ef92fView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Alexei Znamensky <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ed372b8 - Browse repository at this point
Copy the full SHA ed372b8View commit details
Commits on Sep 20, 2022
-
double-quotes are not properly escaped in shell, and python string
escaping are nullified the way terraform handle second tier string variables (within terraform).
Configuration menu - View commit details
-
Copy full SHA for acd61bd - Browse repository at this point
Copy the full SHA acd61bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc9ded7 - Browse repository at this point
Copy the full SHA dc9ded7View commit details -
integration testing now includes:
1. Top level strings containing, special shell characters, spaces, double-quotes. 2. Second level strings containing, special shell characters, spaces, double-quotes repeating double-quotes to ensure proper regex substitution.
Configuration menu - View commit details
-
Copy full SHA for f7b2aa7 - Browse repository at this point
Copy the full SHA f7b2aa7View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb3bcd6 - Browse repository at this point
Copy the full SHA eb3bcd6View commit details
Commits on Oct 1, 2022
-
Added complex_vars to switch between the old and the new variable
interpretations. Updated the documentations to reflect the changes. Updated the examples. Handling '\' as well with the escape sequence.
Configuration menu - View commit details
-
Copy full SHA for 38b104f - Browse repository at this point
Copy the full SHA 38b104fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3dbab72 - Browse repository at this point
Copy the full SHA 3dbab72View commit details -
Restructuring the documente strings to a shorter string.
Argument_spec changed to 'bool'
Configuration menu - View commit details
-
Copy full SHA for eafc630 - Browse repository at this point
Copy the full SHA eafc630View commit details -
Update changelogs/fragments/4797-terraform-complex-variables.yml
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0782937 - Browse repository at this point
Copy the full SHA 0782937View commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1def1ec - Browse repository at this point
Copy the full SHA 1def1ecView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 980faa1 - Browse repository at this point
Copy the full SHA 980faa1View commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 738597b - Browse repository at this point
Copy the full SHA 738597bView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53c7887 - Browse repository at this point
Copy the full SHA 53c7887View commit details
Commits on Oct 3, 2022
-
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9f3063a - Browse repository at this point
Copy the full SHA 9f3063aView commit details -
Update plugins/modules/cloud/misc/terraform.py
Co-authored-by: Felix Fontein <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab0b1ab - Browse repository at this point
Copy the full SHA ab0b1abView commit details