# Installer terraform-inventory avec Homebrew, Nix, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de terraform-inventory pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:terraform-inventory
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install terraform-inventory
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terraform-inventory
```

  Preuve: nixpkgs package indexes: pkgs/by-name/te/terraform-inventory/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install ansible-terraform-inventory
```

  Preuve: openSUSE Tumbleweed package metadata: ansible-terraform-inventory from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:terraform-inventory
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/terraform-inventory>
- **Version:** 0.10
- **Résumé source:** Go app which generates a dynamic Ansible inventory from a Terraform state file
- **Page d'accueil:** <https://github.com/adammck/terraform-inventory>
- **Dépôt:** <https://github.com/adammck/terraform-inventory>
- **Licence:** MIT
- **Archive source:** <https://github.com/adammck/terraform-inventory/archive/refs/tags/v0.10.tar.gz>
- **Dernière mise à jour:** 2026-07-26T00:50:35+02:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- terraform-inventory (cli)
- terraform-inventory (alias)

## Dépendances de compilation

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 0.10
- gestionnaire mis à jour: 2026-07-26
- données locales: OK
- dépôt amont: https://github.com/adammck/terraform-inventory
- dernière version détectée: v0.10 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <https://api.github.com/repos/adammck/terraform-inventory>
- <https://github.com/adammck/terraform-inventory#readme>
- <https://github.com/adammck/terraform-inventory/releases>
- source_facts.package-manager


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terraform-inventory
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Autres enregistrements de gestionnaires de paquets

- Nix - terraform-inventory: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terraform-inventory/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - ansible-terraform-inventory - 0.10-3.8: normalized package name match | openSUSE Tumbleweed package metadata: ansible-terraform-inventory from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Generate a dynamic Ansible inventory from a Terraform state file | https://github.com/adammck/terraform-inventory


## Liens liés

- [Cloud CLI packages](https://pkg.so/fr/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/fr/brew/go/) - Build dependency declared by Homebrew.
- [terragrunt](https://pkg.so/fr/brew/terragrunt/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [tfenv](https://pkg.so/fr/brew/tfenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [terraform-docs](https://pkg.so/fr/brew/terraform-docs/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [ansible-lint](https://pkg.so/fr/brew/ansible-lint/) - Shares pkgdb curated category or tags: ansible, cli, developer-tools.
- [tenv](https://pkg.so/fr/brew/tenv/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [terraform-ls](https://pkg.so/fr/brew/terraform-ls/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [tfmigrate](https://pkg.so/fr/brew/tfmigrate/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [coder](https://pkg.so/fr/brew/coder/) - Shares pkgdb curated category or tags: cli, developer-tools, terraform.
- [terraform-lsp](https://pkg.so/fr/brew/terraform-lsp/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, terraform.
- [terraform-module-versions](https://pkg.so/fr/brew/terraform-module-versions/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/terraform-inventory.yml](https://github.com/mxcl/pkgdb/blob/main/combined/terraform-inventory.yml)


## Sources

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