terraform-provider-rancher icon indicating copy to clipboard operation
terraform-provider-rancher copied to clipboard

Volume resource: How to pass arguments to the driver

Open jean-francois-labbe opened this issue 8 years ago • 1 comments

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?

jean-francois-labbe avatar Dec 19 '17 10:12 jean-francois-labbe

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

raphink avatar Dec 19 '17 13:12 raphink