pkg.soopen package index

brew / rank 9092

Install terraform-inventory with Homebrew, Nix, zypper

Go app which generates a dynamic Ansible inventory from a Terraform state file. Version 0.10 via Homebrew; verified 2026-07-26. Also installable with nix: nix profile install nixpkgs#terraform-inventory.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install terraform-inventory

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#terraform-inventory

nixpkgs package indexes · pkgs/by-name/te/terraform-inventory/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install ansible-terraform-inventory

openSUSE Tumbleweed package metadata · ansible-terraform-inventory · source: download.opensuse.org

overview

Package summary

Go app which generates a dynamic Ansible inventory from a Terraform state file

Commands and aliases

  • terraform-inventory

history

Project history and usage

terraform-inventory is an early Terraform companion CLI that generates dynamic Ansible inventory from Terraform state. It let teams provision infrastructure with Terraform and then immediately target those resources from Ansible playbooks.

Project history

The adammck/terraform-inventory repository was created on GitHub in September 2014, making it one of the older Terraform-adjacent tools in this batch. Its README describes it as a small Go app that generates a dynamic Ansible inventory from a Terraform state file so users can spawn instances with Terraform and then reprovision them with Ansible.

The project released v0.1 and v0.2 in September 2014 and continued adding provider support across cloud and virtualization platforms, including AWS, DigitalOcean, Google Compute Engine, OpenStack, Docker, VMware, Hetzner Cloud, Linode, Proxmox, and others. By the README's own note, the library was stable but had been neglected because the maintainer no longer used Ansible at work.

Adoption history

terraform-inventory reflects an important early Terraform adoption pattern: Terraform handled infrastructure creation, while Ansible still handled configuration management. Before provider ecosystems, cloud-init practices, and Terraform-native workflows matured, bridging Terraform state into Ansible inventory solved a practical day-two automation problem.

The input package facts list Homebrew, Nix, and zypper packaging, and the README includes a Homebrew badge and Homebrew installation instructions. That packaging footprint is notable for an older Go utility whose primary interface is simply being executable by `ansible-playbook` as an inventory script.

How it is used

The basic usage is to point Ansible at the `terraform-inventory` executable with `--inventory-file`; the tool discovers `terraform.tfstate`, pulls remote state from a Terraform directory, or honors environment variables such as `TF_STATE` and `TI_TFSTATE`. It maps Terraform resource names, provider metadata, and selected IP fields into Ansible host groups.

The README documents additional environment variables such as `TF_KEY_NAME` and `TF_HOSTNAME_KEY_NAME` for choosing private IPs or alternate hostnames. That interface is very much of the Unix CLI style: no daemon, no central service, just state in and inventory JSON out.

Why package nerds care

terraform-inventory matters historically because it captures the moment when Terraform and Ansible were commonly paired rather than treated as competing tools. For package nerds, it is a compact example of how early infrastructure CLIs were distributed: a static-ish Go binary, release archives, Homebrew formula, and distro packages.

It is less central in newer Terraform workflows, but its design remains recognizable: read Terraform state, produce another tool's expected machine-readable interface, and make the glue installable from a package manager.

Timeline

  • 2014: GitHub repository created.
  • 2014: v0.1 and v0.2 releases published.
  • 2015: v0.3 through v0.6 pre-releases published.
  • 2019: v0.9 released.
  • 2021: v0.10 listed as the latest GitHub release during research.
  • 2025: Repository still showed recent push activity during research.

Related projects

  • The README positions terraform-inventory between Terraform and Ansible. It also names many supported Terraform providers, reflecting the project's role as a provider-state adapter rather than a Terraform provider itself.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
terraform-inventoryexecutableindexed executableDiscovered from the local executable index.

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-08-03
manager version0.10
manager updated2026-07-26
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:terraform-inventory
Version0.10
Package managerHomebrew
Homepagehttps://github.com/adammck/terraform-inventory
Repositoryhttps://github.com/adammck/terraform-inventory
Last updated2026-07-26T00:50:35+02:00
Pulseupdated
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

terraform-inventory

nix profile install nixpkgs#terraform-inventory
  • normalized package name match
  • Matched by: Terraform Inventory
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/te/terraform-inventory/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
zypper95%

ansible-terraform-inventory 0.10-3.8

Generate a dynamic Ansible inventory from a Terraform state file

https://github.com/adammck/terraform-inventory

sudo zypper install ansible-terraform-inventory
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ansible-terraform-inventory
  • 2 provides
  • normalized package name match
  • Matched by: Terraform Inventory
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ansible-terraform-inventory from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation