Capgemini / kubeform

Form your :boat: Kubernetes :anchor: cluster anywhere using CoreOS, Terraform and Ansible
https://capgemini.github.io/kubeform
MIT License
326 stars 57 forks source link

Updated to Terraform Client 0.7 Updated docs #176

Open mattcoffey opened 7 years ago

mattcoffey commented 7 years ago

I encountered some issues while trying to run the demo so I'm sharing what I did to get up and running. PR: https://github.com/Capgemini/tf_tls/pull/46 should be dealt with first and references to the mattcoffey fork in main.tf should be reverted back to Capgemini.

N.B.: Only tested with Digital Ocean

enxebre commented 7 years ago

hey @mattcoffey thanks a lot for this, just dropped a few comments

mattcoffey commented 7 years ago

Thanks for the comments @enxebre The odd stuff in inventory/inventory and comment about local ssh server was related to making the ansible part work without having specified the TF_VAR_STATE_ROOT properly previously. When I realised that was the problem it became obvious that it wasn't necessary to copy the IPs from the output of terraform apply or have a local ssh server running.

enxebre commented 7 years ago

Hey @mattcoffey as part of the upgrade for terraform 0.7 we'd need to update the the templates to be "Data Sources" analogous to https://github.com/Capgemini/kubeform/pull/172/files#diff-f7c82420f5bbe654c1ba49edd173dab3R14 and to be consistent with the list format as per https://github.com/Capgemini/kubeform/pull/172/files#diff-530c171466f13a11a8a7c715564dbc4bR85 I'll wait in case you wanna add support for that to this PR, otherwise I'll merge this anyway as It's an improvement over what we have now. Thanks!

mattcoffey commented 7 years ago

I'll update the templates when I get back from travel on the 27th. Thanks for the pointers Alberto!