Forge Home


Installs Microsoft repository sources for Powershell etc. via Puppet.


169 latest version

4.9 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

  • 0.1.5 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
released Apr 13th 2023
This version is compatible with:
  • Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • , , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'visus-msftrepo', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add visus-msftrepo
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install visus-msftrepo --version 0.1.5

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.



visus/msftrepo — version 0.1.5 Apr 13th 2023


The msftrepo module installs Microsoft repository sources that in turn enable installation of Powershell and .NET Core via a package manager.

Table of Contents

  1. Description
  2. Setup – The basics of getting started with msftrepo
  3. Usage – Configuration options and additional functionality
  4. Limitations
  5. Development - Guide for contributing to the module


This module installs the Microsoft production repository to RedHat or Debian systems, which provides packages like Powershell and .NET Core.


Setup Requirements

This module requires puppet-yum and puppetlabs-apt being installed.

Beginning with msftrepo

Just add include msftrepo to add all configured repositories at their default location.


If desired, details of the installed repositories should be changed via Hiera.

The following global Hiera settings affect all repositories:

Name Description Default
msftrepo::repo_dir The path where the repository files are installed. undef
msftrepo::repo_owner The user name or UID of the user owning the repository file. 0
msftrepo::repo_group The name or UID of the group owning the repository file. 0
msftrepo::key_dir The directory where the key should be installed on RedHat-based systems. /etc/pki/rpm-gpg
msftrepo::key_prefix A prefix added to the name of the key files before the repository title. RPM-GPG-KEY-

The repositories are stored in the hash msftrepo::repos. Each of the repositories has the following parameters:

Name Description Default
repo_src The URL where the repository definition is downloaded from. OS-dependent
key_id The ID of the GPG key used with the repository. 0xEB3E94ADBE1229CF
key_src The URL where the GPG key is downloaded from.


Only the distributions listed in metadata.json are supported.


Open a pull request on GitHub.