Puppet Class: php::package
- Defined in:
- puppet/modules/php/manifests/package.pp
Overview
Class: php::package
Installs the PHP package and its dependencies
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'puppet/modules/php/manifests/package.pp', line 3
class php::package {
package { [
'php8.1-common',
'php8.1',
'php8.1-apcu',
'php8.1-cli',
'php8.1-curl',
'php8.1-dev',
'php8.1-gd',
'php8.1-intl',
'php8.1-mbstring',
'php8.1-mysql',
'php8.1-readline',
'php8.1-sqlite3',
'php8.1-xml',
]:
ensure => present,
require => [
Class['::apache::mod::php'],
Class['::php::repository'],
]
}
env::alternative { 'default_php_to_8.1':
alternative => 'php',
target => '/usr/bin/php8.1',
priority => 10,
require => Package['php8.1'],
}
}
|