diff --git a/manifests/repo/redhat.pp b/manifests/repo/redhat.pp index 5885a593..a4040a17 100644 --- a/manifests/repo/redhat.pp +++ b/manifests/repo/redhat.pp @@ -9,6 +9,27 @@ class php::repo::redhat ( $yum_repo = 'remi_php56', ) { - contain "::yum::repo::${yum_repo}" - contain '::yum::repo::remi' + + $releasever = $::operatingsystem ? { + /(?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, + } } diff --git a/metadata.json b/metadata.json index eb6d24e3..d17eb1d7 100644 --- a/metadata.json +++ b/metadata.json @@ -28,10 +28,6 @@ { "name": "puppet/archive", "version_requirement": ">= 1.0.0 < 2.0.0" - }, - { - "name": "example42/yum", - "version_requirement": ">= 2.1.28 < 3.0.0" } ], "requirements": [