rhsm_only

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

Pat Riehecky

jcpunk

11,326 downloads

4,884 latest version

4.6 quality score

Version information

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

Start using this module

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',
}