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

Better resourceref flexibility #1034

Merged
merged 5 commits into from
Dec 14, 2018
Merged

Conversation

rambleraptor
Copy link
Contributor

@rambleraptor rambleraptor commented Dec 11, 2018

ResourceRefs on Ansible are the only MM downstream that follow the classical view of ResourceRefs. You build a dependency in a task, assign it to a variable (it's a dict) and then reference that variable in the resourceref field. The ResourceRef logic grabs the proper information from the dict.

This is less than ideal for users. Even with better documentation, it's just not intuitive enough for them. I've had multiple users mention this and using this system just makes the examples look opaque.

The new system allows users to input a dict (as before) or just a string of the proper value. The documentation mentions both of these systems.


[all]

[terraform]

[terraform-beta]

[ansible]

[inspec]

@rambleraptor rambleraptor force-pushed the better_resourceref_flexibility branch from 7d63833 to e1eb5e0 Compare December 11, 2018 23:58
@modular-magician
Copy link
Collaborator

I am a robot that works on MagicModules PRs!

I built this PR into one or more PRs on other repositories, and when those are closed, this PR will also be merged and closed.
depends: hashicorp/terraform-provider-google#2639
depends: modular-magician/ansible#149

@modular-magician
Copy link
Collaborator

I am (still) a robot that works on MagicModules PRs!

I just wanted to let you know that your changes (as of commit ffb03ab) have been included in your existing downstream PRs.

@modular-magician modular-magician force-pushed the better_resourceref_flexibility branch from afc3cd5 to 6f5932c Compare December 14, 2018 21:03
@modular-magician modular-magician merged commit 0424fdd into master Dec 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants