Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.21 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.21 KB

bolt_vagrant

This module provides a custom bolt inventory plugin for Vagrant. This allows you to run Bolt from your Vagrant directory and the have the inventory automatically populated from Vagrant.

Usage

Configure the Bolt inventory.yaml to use the plugin as follows:

version: 2

targets:
  - _plugin: task
    task: bolt_vagrant::targets

See the Bolt documentation for more info.

Parameters

version: 2

targets:
  - _plugin: task
    task: bolt_vagrant::targets
    parameters:
      vagrant_dir: /Users/dylan/git/bolt_project_dir
      winrm_regex: win

vagrant_dir: The location of the Vagrant directory, defaults to cwd

winrm_regex: A regular expression used to determine which machines should be connected to using winrm. Unfortunately Vagrant doesn't give that information out at the command line and there is no way of working it out. This regex is passed to Regexp.new() as a string. Running the targets.rb file manually will provide debugging info.

match: A regular expression used to determine which machines should be returned in the inventory. This regex is passed to Regexp.new() as a string.