adammck / terraform-inventory

Terraform State → Ansible Dynamic Inventory
MIT License
1.82k stars 321 forks source link

Oracle Public Cloud support #69

Open ghost opened 7 years ago

ghost commented 7 years ago

All,

I am currently working on Oracle Public cloud infrastructure provisioning using Terraform. can I use the this for syncing inventory with tf state file. does it work?

adammck commented 7 years ago

I don't know, does it? 😅 I've never used OPC. I'm going to guess not, because I don't see any reference to it in resource.go, where the IP extraction (from the statefile) happens. New providers are pretty simple to add; see #67, #52, #24. Please send along a PR if you get it working!

ghost commented 7 years ago

Sure, let me give try and will update.thanks.

ghost commented 7 years ago

can i use the tag name to identity my host or i should always the resource type name which i give in my terraform tf file ?

adammck commented 7 years ago

Hosts can always be identified by their resource name (from your Terraform template, not the actual instance name), and also by tags, if your provider is supported. See the example statefile and the output for an example. Note that the output contains hosts grouped by name, type, and tags.