Skip to content
This repository has been archived by the owner on Dec 5, 2020. It is now read-only.

Chef provider: add content_file for all resources #1

Open
hashibot opened this issue Jun 13, 2017 · 0 comments
Open

Chef provider: add content_file for all resources #1

hashibot opened this issue Jun 13, 2017 · 0 comments

Comments

@hashibot
Copy link

This issue was originally opened by @partamonov as hashicorp/terraform#4581. It was migrated here as part of the provider split. The original body of the issue is below.


With current implementation all roles/data bags items/envs should be specified inside .tf file.

This mean that to use it you have to move all roles/data bags items/envs inside .tf file, but in many cases these roles/data bags items/envs are stored in repositories and better approach (or additional available) is to read from file, with file() interpolation function.

  • chef_data_bag_item -> content_file "file('path/to/data_bag_item.json')"
  • chef_environment -> content_file, should discard all other attributes
  • chef_role -> content_file, should discard all other attributes

Also for chef_data_bag_item we can use template_file to get content, but it's better to add this to documentation example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant