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
33
34
35
36
37
38
39
40
41
42
43
44
# File 'puppet/modules/php/manifests/package.pp', line 3

class php::package {
    package { [
        'php7.4-common',
        'php7.4',
        'php7.4-apcu',
        'php7.4-cli',
        'php7.4-curl',
        'php7.4-dev',
        'php7.4-gd',
        'php7.4-intl',
        'php7.4-json',
        'php7.4-mbstring',
        'php7.4-mysql',
        'php7.4-readline',
        'php7.4-sqlite3',
        'php7.4-xml',
    ]:
        ensure  => present,
        require => [
            Class['::apache::mod::php'],
            Class['::php::repository'],
        ]
    }

    env::alternative { 'default_php_to_7.4':
        alternative => 'php',
        target      => '/usr/bin/php7.4',
        priority    => 10,
        require     => Package['php7.4'],
    }

    # Clean up HHVM leftovers
    package { [
        'hhvm',
        'hhvm-dev',
        'hhvm-luasandbox',
        'hhvm-tidy',
        'hhvm-wikidiff2'
    ]:
        ensure => absent,
    }
}