``profile::repository_list``
============================

This module configures adds a list of package repositories from hiera
and filters those according to OS version.

This profile is used from Puppet::

    profile::repository_list{'rpm_repos::epel':}

Parameters
----------

===============================  ========  =============================================
**Name**                         **Type**  **Default**
-------------------------------  --------  ---------------------------------------------
accept_empty                     bool      false
===============================  ========  =============================================


``title``
~~~~~~~~~

Name of the list of software repositores to be installed.
It will lookup in Hiera for a list ``$title`` and look up the
repository definitons with ``hiera_hash("rpm_repos::repo::${name}")``.

The repository definitions not suitable for this OS will be filtered away,
then with the rest a repository configuration is writen to the node 
using ``profile::repository``. The ``osversion`` key in the repository definition
signals the major RHEL version for which this repository is for.

Example::

  rpm_repos::repo::epel_rhel8:
    name: 'epel'
    descr: "Extra Packages for Enterprise Linux 8"
    baseurl: 'https://repo01.psi.ch/el8/tags/$pli_repo_tag/epel/'
    gpgkey: 'https://repo01.psi.ch/el8/keys/RPM-GPG-KEY-EPEL-8'
    disable: false
    gpgcheck: true
    osversion: 8
    exclude:
        - "slurm*"

  rpm_repos::repo::epel_rhel7:
    name: 'epel'
    descr: "Extra Packages for Enterprise Linux 7"
    baseurl: 'https://repo00.psi.ch/el7/tags/$pli_repo_tag/epel/'
    disable: false
    gpgcheck: false
    osversion: 7
    exclude:
        - "slurm*"

  rpm_repos::epel
    - epel_rhel7
    - epel_rhel8


``accept_empty``
~~~~~~~~~~~~~~~~

Do not fail when the repository list is empty after filtering away those not suitable for the current OS.
