Skip to content

Commit c60467b

Browse files
committed
try to force onto php7.4
1 parent 472697b commit c60467b

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

  • deploy/vagrant/modules/php/manifests

deploy/vagrant/modules/php/manifests/init.pp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
# Make sure php7 and libapache2-mod-php are installed
44
package {
5-
"php": ensure => installed;
5+
"php7.4": ensure => installed;
66
"libapache2-mod-php": ensure => installed;
7-
"php7.0-mbstring": ensure => installed;
7+
"php7.4-mbstring": ensure => installed;
88
}
99

1010
file {
11-
"/etc/php/7.0/apache2/conf.d/buttonmen.ini":
11+
"/etc/php/7.4/apache2/conf.d/buttonmen.ini":
1212
ensure => file,
1313
content => template("php/buttonmen.ini.erb"),
1414
notify => Service["apache2"],
1515
require => Package["libapache2-mod-php"];
1616

17-
"/etc/php/7.0/deploy-includes":
17+
"/etc/php/7.4/deploy-includes":
1818
ensure => directory,
1919
require => Package["libapache2-mod-php"];
2020
}
@@ -46,32 +46,32 @@
4646
unless => "/usr/bin/pear config-get auto_discover | /bin/grep -q 1";
4747

4848
"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"];
5252

5353
"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"];
5757

5858
"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"];
6262

6363
"php_pear_discover_phpdoc":
6464
command => "/usr/bin/pear channel-discover pear.phpdoc.org",
6565
require => Exec["php_pear_set_auto_discover"],
6666
unless => "/usr/bin/pear list-channels | /bin/grep pear.phpdoc.org";
6767

6868
"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",
7070
require => Exec["php_pear_set_auto_discover"],
7171
creates => "/usr/bin/phpcs";
7272

7373
"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",
7575
require => Exec["php_pear_discover_phpdoc"],
7676
creates => "/usr/share/php/phpDocumentor";
7777
}

0 commit comments

Comments
 (0)