What is a Bolt inventory? The inventory is a YAML file in your Bolt project that describes the targets that you run Bolt commands on, along with any data and configuration for the targets. Targets in an inventory can belong to one or more groups, allowing you to share data and configuration across multiple targets and to specify multiple targets for your Bolt commands without the need to list each target individually. Why should I use a Bolt inventory?
Inventories allow you to quickly and easily reference groups of targets from the command line, and set unique configuration on each target or group of targets. Inventories also let you share connection information with other members of your organization, and load dynamic inventory from a variety of sources like AWS, PuppetDB, or a command line prompt.
How do I create a Bolt inventory?
To create a new Bolt inventory, all you need to do is create a file named inventory.yaml in your project directory (next to bolt-project.yaml) or specify a file using --inventoryfile.
How do I create my own inventory plugin? Want to load dynamic inventory from a new source? First, see if there's already an awesome third-party plugin for it. If you don't find it there, checkout our guide to writing plugins. |