forked from example42/puppet-yum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request example42#184 from iansltx/php72
Add Remi PHP 7.2 repo
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# = Class: yum::repo::remi_php72 | ||
# | ||
# This class installs the remi-php72 repo | ||
# | ||
class yum::repo::remi_php72 { | ||
$releasever = $::operatingsystem ? { | ||
/(?i:Amazon)/ => '6', | ||
default => '$releasever', # Yum var | ||
} | ||
|
||
$os = $::operatingsystem ? { | ||
/(?i:Fedora)/ => 'fedora', | ||
default => 'enterprise', | ||
} | ||
|
||
$osname = $::operatingsystem ? { | ||
/(?i:Fedora)/ => 'Fedora', | ||
default => 'Enterprise Linux', | ||
} | ||
|
||
yum::managed_yumrepo { 'remi-php72': | ||
descr => "Remi's PHP 7.2 RPM repository for ${osname} \$releasever - \$basearch", | ||
mirrorlist => "http://rpms.remirepo.net/${os}/${releasever}/php72/mirror", | ||
enabled => 1, | ||
gpgcheck => 1, | ||
gpgkey => 'http://rpms.remirepo.net/RPM-GPG-KEY-remi', | ||
priority => 1, | ||
} | ||
} |