|
2 | 2 |
|
3 | 3 | # Make sure php7 and libapache2-mod-php are installed |
4 | 4 | package { |
5 | | - "php": ensure => installed; |
| 5 | + "php7.4": ensure => installed; |
6 | 6 | "libapache2-mod-php": ensure => installed; |
7 | | - "php7.0-mbstring": ensure => installed; |
| 7 | + "php7.4-mbstring": ensure => installed; |
8 | 8 | } |
9 | 9 |
|
10 | 10 | file { |
11 | | - "/etc/php/7.0/apache2/conf.d/buttonmen.ini": |
| 11 | + "/etc/php/7.4/apache2/conf.d/buttonmen.ini": |
12 | 12 | ensure => file, |
13 | 13 | content => template("php/buttonmen.ini.erb"), |
14 | 14 | notify => Service["apache2"], |
15 | 15 | require => Package["libapache2-mod-php"]; |
16 | 16 |
|
17 | | - "/etc/php/7.0/deploy-includes": |
| 17 | + "/etc/php/7.4/deploy-includes": |
18 | 18 | ensure => directory, |
19 | 19 | require => Package["libapache2-mod-php"]; |
20 | 20 | } |
|
46 | 46 | unless => "/usr/bin/pear config-get auto_discover | /bin/grep -q 1"; |
47 | 47 |
|
48 | 48 | "php_wget_install_phpmd": |
49 | | - command => "/usr/bin/wget --no-verbose -O /etc/php/7.0/deploy-includes/phpmd.phar http://static.phpmd.org/php/latest/phpmd.phar", |
50 | | - creates => "/etc/php/7.0/deploy-includes/phpmd.phar", |
51 | | - require => File["/etc/php/7.0/deploy-includes"]; |
| 49 | + command => "/usr/bin/wget --no-verbose -O /etc/php/7.4/deploy-includes/phpmd.phar http://static.phpmd.org/php/latest/phpmd.phar", |
| 50 | + creates => "/etc/php/7.4/deploy-includes/phpmd.phar", |
| 51 | + require => File["/etc/php/7.4/deploy-includes"]; |
52 | 52 |
|
53 | 53 | "php_wget_install_phpcpd": |
54 | | - command => "/usr/bin/wget --no-verbose -O /etc/php/7.0/deploy-includes/phpcpd.phar https://phar.phpunit.de/phpcpd.phar", |
55 | | - creates => "/etc/php/7.0/deploy-includes/phpcpd.phar", |
56 | | - require => File["/etc/php/7.0/deploy-includes"]; |
| 54 | + command => "/usr/bin/wget --no-verbose -O /etc/php/7.4/deploy-includes/phpcpd.phar https://phar.phpunit.de/phpcpd.phar", |
| 55 | + creates => "/etc/php/7.4/deploy-includes/phpcpd.phar", |
| 56 | + require => File["/etc/php/7.4/deploy-includes"]; |
57 | 57 |
|
58 | 58 | "php_wget_install_phpcb": |
59 | | - command => "/usr/bin/wget --no-verbose -O /etc/php/7.0/deploy-includes/phpcb.phar https://github.com/bytepark/php-phar-qatools/blob/master/phpcb.phar", |
60 | | - creates => "/etc/php/7.0/deploy-includes/phpcb.phar", |
61 | | - require => File["/etc/php/7.0/deploy-includes"]; |
| 59 | + command => "/usr/bin/wget --no-verbose -O /etc/php/7.4/deploy-includes/phpcb.phar https://github.com/bytepark/php-phar-qatools/blob/master/phpcb.phar", |
| 60 | + creates => "/etc/php/7.4/deploy-includes/phpcb.phar", |
| 61 | + require => File["/etc/php/7.4/deploy-includes"]; |
62 | 62 |
|
63 | 63 | "php_pear_discover_phpdoc": |
64 | 64 | command => "/usr/bin/pear channel-discover pear.phpdoc.org", |
65 | 65 | require => Exec["php_pear_set_auto_discover"], |
66 | 66 | unless => "/usr/bin/pear list-channels | /bin/grep pear.phpdoc.org"; |
67 | 67 |
|
68 | 68 | "php_pear_install_phpcs": |
69 | | - command => "/usr/bin/wget --no-verbose -O /etc/php/7.0/deploy-includes/phpcs.phar https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar", |
| 69 | + command => "/usr/bin/wget --no-verbose -O /etc/php/7.4/deploy-includes/phpcs.phar https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar", |
70 | 70 | require => Exec["php_pear_set_auto_discover"], |
71 | 71 | creates => "/usr/bin/phpcs"; |
72 | 72 |
|
73 | 73 | "php_pear_install_phpdocumenter": |
74 | | - command => "/usr/bin/pear install phpdoc/phpDocumentor-2.7.0", |
| 74 | + command => "/usr/bin/pear install phpdoc/phpDocumentor-2.7.4", |
75 | 75 | require => Exec["php_pear_discover_phpdoc"], |
76 | 76 | creates => "/usr/share/php/phpDocumentor"; |
77 | 77 | } |
|
0 commit comments