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

Volume resource: How to pass arguments to the driver #65

Open
jean-francois-labbe opened this issue Dec 19, 2017 · 1 comment
Open

Volume resource: How to pass arguments to the driver #65

jean-francois-labbe opened this issue Dec 19, 2017 · 1 comment

Comments

@jean-francois-labbe
Copy link

The new rancher volume resource allow volume management.

According to Rancher-ebs documentation an ebs volume needs configuration options in order to be properly initialized.

How can I set those options in terraform?

@raphink
Copy link
Contributor

raphink commented Dec 19, 2017

This is not implemented yet (we use mainly rancher-nfs, which doesn't require options). Implementing it shouldn't be too hard. It would essentially be a TypeMap parameter.

You can have a look at the rancher_stack resource for an example: https://github.com/terraform-providers/terraform-provider-rancher/blob/master/rancher/resource_rancher_stack.go#L58-L61

You will probably have to cast the structure like this: https://github.com/terraform-providers/terraform-provider-rancher/blob/master/rancher/resource_rancher_stack.go#L435

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

2 participants