msftrepo

pdk
Installs Microsoft repository sources for Powershell etc. via Puppet.

VISUS

visus

533 downloads

499 latest version

1.7 quality score

Version information

  • 0.1.2 (latest)
  • 0.1.1
  • 0.1.0
released Mar 26th 2021
This version is compatible with:
  • Puppet Enterprise 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 8.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu
    ,
    Fedora

Start using this module

Documentation

visus/msftrepo — version 0.1.2 Mar 26th 2021

msftrepo

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

Description

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

Setup

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.

Usage

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. https://packages.microsoft.com/keys/microsoft.asc

Limitations

Only the distributions listed in metadata.json are supported.

Development

Open a pull request on GitHub.