2013-05-29 17:36:53 +02:00
|
|
|
# Class: php
|
|
|
|
#
|
2013-06-04 12:42:18 +02:00
|
|
|
# This class installs php.
|
2013-05-29 17:36:53 +02:00
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
#
|
|
|
|
# Actions:
|
|
|
|
#
|
|
|
|
# Requires:
|
|
|
|
#
|
2013-07-22 17:24:56 +02:00
|
|
|
# apache
|
2018-01-11 18:07:40 +01:00
|
|
|
# epel
|
|
|
|
# scl
|
2013-07-22 17:24:56 +02:00
|
|
|
#
|
2013-05-29 17:36:53 +02:00
|
|
|
# Sample Usage:
|
|
|
|
#
|
|
|
|
# include php
|
|
|
|
#
|
|
|
|
class php {
|
|
|
|
|
2013-07-22 17:24:56 +02:00
|
|
|
include apache
|
2016-02-19 13:37:50 +01:00
|
|
|
include epel
|
2018-01-11 18:07:40 +01:00
|
|
|
include scl
|
2013-07-22 17:24:56 +02:00
|
|
|
|
2020-04-21 12:22:54 +02:00
|
|
|
package { 'rh-php73-php-fpm':
|
2014-11-24 14:42:07 +01:00
|
|
|
ensure => latest,
|
2014-10-21 12:19:32 +02:00
|
|
|
notify => Service['apache'],
|
2018-01-11 18:07:40 +01:00
|
|
|
require => [ Class['scl'], Package['apache'] ],
|
|
|
|
}
|
2020-04-21 12:22:54 +02:00
|
|
|
-> service { 'rh-php73-php-fpm':
|
2018-01-11 18:07:40 +01:00
|
|
|
ensure => running,
|
|
|
|
enable => true,
|
2019-02-13 23:12:20 +01:00
|
|
|
alias => 'php-fpm',
|
2014-10-21 12:19:32 +02:00
|
|
|
}
|
2013-07-22 17:24:56 +02:00
|
|
|
|
2016-02-19 13:37:50 +01:00
|
|
|
package { 'php-pecl-xdebug':
|
|
|
|
ensure => latest,
|
|
|
|
notify => Service['apache'],
|
|
|
|
require => Class['epel'],
|
|
|
|
}
|
|
|
|
|
2015-07-31 16:23:22 +02:00
|
|
|
php::phpd { ['error_reporting', 'timezone', 'xdebug_settings' ]: }
|
2013-05-29 17:36:53 +02:00
|
|
|
}
|