Forge Home

rhsm_only

Ensures the only file in /etc/yum.repos.d/ is redhat.repo

13,843 downloads

6,509 latest version

4.6 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.16 (latest)
  • 0.1.15
  • 0.1.14
  • 0.1.13 (deleted)
  • 0.1.12
  • 0.1.11
  • 0.1.10
  • 0.1.9 (deleted)
  • 0.1.8
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4 (deleted)
  • 0.1.3 (deleted)
  • 0.1.2 (deleted)
  • 0.1.1 (deleted)
released Jan 3rd 2018
This version is compatible with:
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'jcpunk-rhsm_only', '0.1.16'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jcpunk-rhsm_only
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jcpunk-rhsm_only --version 0.1.16

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

jcpunk/rhsm_only — version 0.1.16 Jan 3rd 2018

== Class: rhsm_only

A puppet module that removes any yum repo not provided in /etc/yum.repos.d/redhat.repo

=== Parameters

[repodir] /etc/yum.repos.d/

[rhsm_repofile] redhat.repo

[repodir_immutable] Should I set /etc/yum.repos.d/ so no one can write there?

[certs_dir] /etc/pki/entitlement

[certs_mode] What are the permissions on the certs? Defaults to allow owner and group read access.

[certs_owner] This should probably stay as 'root'

[certs_group] What group owns the certs, defaults to 'wheel'

[before_packages] setup Package to be after we set repos

[manage_yum_rpm] Ensure yum is up to date. Required if using repodir_immutable

[yum_rpm] Name of package containing yum/dnf (should default just fine)

[manage_release_rpm] Ensure release rpm is up to date. Required if using repodir_immutable

[release_rpm] Name of your release rpm

=== Examples include rhsm_only

class { 'rhsm_only':
  repodir            => '/etc/yum.repos.d',
  rhsm_repofile      => 'redhat.repo',
  repodir_immutable  => true,
  certs_dir          => '/etc/pki/entitlement',
  certs_mode         => '0644',
  certs_owner        => 'root',
  certs_group        => 'wheel',
  before_packages    => true,
  manage_yum_rpm     => true,
  manage_release_rpm => false,
  release_rpm        => 'redhat-release',
}