This is a little Go app that generates a dynamic Ansible inventory from a Terraform state file. It allows one to spawn a bunch of instances with Terraform, then (re-)provision them with Ansible. This library is stable, but I've been neglecting it somewhat on account of no longer using Ansible at work. On OSX, install it with Homebrew. Alternatively, you can download a release suitable for your platform and unzip it. Make sure the terraform-inventory binary is executable, and you're ready to go. Ansible doesn't seem to support calling a dynamic inventory script with params, so if you need to specify the location of your state file or terraform directory, set the TF_STATE environment variable before running ansible-playbook. Alternately, if you need to do something fancier (like downloading your state file from S3 before running), you might wrap this tool with a shell script, and call that instead.

Features

  • Supports AWS, CloudStack and DigitalOcean
  • Supports Docker, Exoscale, Google Compute Engine and Hetzner Cloud
  • Supports libvirt, Linode, OpenStack and Packet
  • Supports Open Telekom Cloud, Yandex.Cloud, and Telmate/Proxmox
  • It's very simple to add support for new providers
  • It allows one to spawn a bunch of instances with Terraform

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Terraform Inventory

Terraform Inventory Web Site

Other Useful Business Software
Infor M3 ERP Icon
Infor M3 ERP

Enterprise manufacturers and distributors requiring a solution to manage and execute complex processes

Efficiently executing the complex processes of enterprise manufacturers and distributors. Infor M3 is a cloud-based, manufacturing and distribution ERP system that leverages the latest technologies to provide an exceptional user experience and powerful analytics in a multicompany, multicountry, and multisite platform. Infor M3 and related CloudSuite™ industry solutions include industry-leading functionality for the chemical, distribution, equipment, fashion, food and beverage, and industrial manufacturing industries. Staying ahead of the competition means staying agile. Our new capabilities bring improved data-driven insights and streamlined workflows to help you make informed decisions and take quick action.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Terraform Inventory!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Software Development Software

Registered

2022-03-10