Resource Type: rhsm_repo

Defined in:
lib/puppet/type/rhsm_repo.rb
Providers:
subscription_manager

Overview

A software channel subscribed to by the server.

Example of a repository from an override

Example of a repository from the Server

rhsm_repo { ‘rhel-6-server-java-rpms’:

ensure        => present, # equal to the enabled property
url           => 'https://katello.example.com/pulp/repos/abc-corp/production/reg-key-1/content/dist/rhel/server/6/6Server/$basearch/java-repo/os',
content_label => 'rhel-6-java-rpms',
id            => 'rhel-6-java-rpms',
name          => 'RedHat Enterprise Linux 6 Server - Java (RPMs)',
repo_type     => 'channel',

}

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • repo_name

    The human readable name of the repository.

  • url

    The yum repo url.

Parameters

  • content_label

    Label, usually identital to ID

  • id

    The rhsm channel subscribed to via the server.

  • provider

    The specific backend to use for this ‘rhsm_repo` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.

  • repo_type

    What kind of repostiory is this