# Puppet Class: php::repo::redhat

Defined in:
  manifests/repo/redhat.pp

## Overview

Parameters:

- yum_repo (`Any`) (defaults to: `'remi_php56'`)

    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    # File 'manifests/repo/redhat.pp', line 9

    class php::repo::redhat (
      $yum_repo = 'remi_php56',
    ) {

      $releasever = $facts['os']['name'] ? {
        /(?i:Amazon)/ => '6',
        default       => '$releasever',  # Yum var
      }

      yumrepo { 'remi':
        descr      => 'Remi\'s RPM repository for Enterprise Linux $releasever - $basearch',
        mirrorlist => "https://rpms.remirepo.net/enterprise/${releasever}/remi/mirror",
        enabled    => 1,
        gpgcheck   => 1,
        gpgkey     => 'https://rpms.remirepo.net/RPM-GPG-KEY-remi',
        priority   => 1,
      }

      yumrepo { 'remi-php56':
        descr      => 'Remi\'s PHP 5.6 RPM repository for Enterprise Linux $releasever - $basearch',
        mirrorlist => "https://rpms.remirepo.net/enterprise/${releasever}/php56/mirror",
        enabled    => 1,
        gpgcheck   => 1,
        gpgkey     => 'https://rpms.remirepo.net/RPM-GPG-KEY-remi',
        priority   => 1,
      }
    }