Forge Home

bolt_vagrant

Dynamic inventory for bolt from a vagrant environment

3,623 downloads

2,041 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.0 (latest)
  • 0.1.0
released May 7th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • , , , , , , , , , ,
Tasks:
  • targets

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'dylanratcliffe-bolt_vagrant', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add dylanratcliffe-bolt_vagrant
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install dylanratcliffe-bolt_vagrant --version 1.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

dylanratcliffe/bolt_vagrant — version 1.1.0 May 7th 2020

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.