Forge Home

windows_diff_enable

Enables Windows Puppet file resource diff on par with Linux

6,758 downloads

6,499 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.0.3 (latest)
  • 1.0.2 (deleted)
  • 1.0.1
  • 1.0.0
released Dec 12th 2017
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0

Start using this module

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

Add this module to your Puppetfile:

mod 'jpadams-windows_diff_enable', '1.0.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jpadams-windows_diff_enable
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jpadams-windows_diff_enable --version 1.0.3

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

jpadams/windows_diff_enable — version 1.0.3 Dec 12th 2017

windows_diff_enable

Enables Windows Puppet file resource diff on par with Linux

Table of Contents

  1. Description
  2. Setup - The basics of getting started with windows_diff_enable
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

Enables Windows Puppet file resource diff on par with Linux by installing GNU diff.exe via Chocolatey and setting approprite config settings in puppet.conf.

This allows for a better experience viewing file changes in the Puppet run logs on the command line and in Puppet Enterprise reports.

Setup

Setup Requirements

Requires the puppetlabs-inifile and the chocolatey-chocolatey module to be present on your master.

Beginning with windows_diff_enable

Just classify your Windows nodes with windows_diff_enable and you'll be good to go!

Usage

There are two parameters that most users won't have to touch:

  • diff_command - Default value: 'C:\ProgramData\chocolatey\lib\diffutils\tools\bin\diff.exe' is the location of the diff.exe or other diff executable.
  • puppet_conf - Default value: 'C:\ProgramData\PuppetLabs\puppet\etc\puppet.conf' is the location of the puppet.conf file on the agent.