Forge Home


Install an RPM-GPG-key from a URL


6,647 latest version

3.8 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.0 (latest)
released Sep 22nd 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'jgazeley-rpmgpgkey', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jgazeley-rpmgpgkey
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jgazeley-rpmgpgkey --version 0.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.



jgazeley/rpmgpgkey — version 0.1.0 Sep 22nd 2016


Table of Contents

  1. Overview
  2. Usage - Configuration options and additional functionality
  3. Limitations - OS compatibility, etc.
  4. Development - Guide for contributing to the module


Install an RPM-GPG-Key from a URL. Useful when using the yumrepo resource type to configure a yum repo with a GPG key on a web server that you need to retrieve and store locally in /etc/pki/rpm-gpg/.


rpmgpgkey { 'RPM-GPG-KEY-CentOS-7':
  ensure => 'present',
  url    => '',


This module is very simple and has some hard-coded paths. It was developed on CentOS/Fedora but may need tweaking for other platforms.


Pull requests welcome.