oracle-quickstart / oci-couchbase

Terraform module to deploy Couchbase on Oracle Cloud Infrastructure (OCI)
Apache License 2.0
3 stars 5 forks source link

Support MDS #6

Open benofben opened 6 years ago

benofben commented 6 years ago

It's not currently obvious how to do this in Terraform. Gruntwork has an approach here: https://github.com/gruntwork-io/terraform-aws-couchbase/tree/master/examples/couchbase-cluster-mds

benofben commented 6 years ago

I've just hard coded the services for now: https://github.com/cloud-partners/oci-couchbase/blob/master/simple/scripts/server.sh#L70

benofben commented 6 years ago

I'm wondering if this just ends up being multiple modules. I'd really rather solve it with python availabe in Terraform as described here: https://twitter.com/benofben/status/1035311554328031233

benofben commented 5 years ago

Turns out we have a need for MDS now and 0.12 isn't out. I'm still skeptical it'll solve the problem. The end result is that we're writing a generator kinda like this one: https://github.com/couchbase-partners/amazon-cloud-formation-couchbase

benofben commented 5 years ago

oh no. Terraform isn't valid JSON (yet). So this needs to generate a string, not a JSON object. Ewww.....

benofben commented 5 years ago

I think that's probably enough of a skeleton.

benofben commented 5 years ago

Hey @OguzPastirmaci can you PR you changes up to the root repo?

benofben commented 5 years ago

This is done, maybe?