From f89d9d777f66eedcd635f4dde6417ae1366b6348 Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Thu, 20 Jan 2022 00:22:58 +0000 Subject: [PATCH] php version --- .../unix/web_training/dvwa/manifests/apache.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/vulnerabilities/unix/web_training/dvwa/manifests/apache.pp b/modules/vulnerabilities/unix/web_training/dvwa/manifests/apache.pp index e2f011ba4..e88a4fb78 100644 --- a/modules/vulnerabilities/unix/web_training/dvwa/manifests/apache.pp +++ b/modules/vulnerabilities/unix/web_training/dvwa/manifests/apache.pp @@ -8,7 +8,13 @@ class dvwa::apache { if ($operatingsystem == 'Debian') { case $operatingsystemrelease { - /^(9|10).*/: { # do 9.x stretch stuff + /^(10).*/: { # do 10.x buster stuff + $php_version = "php7.3" + package { 'mysql-server': + ensure => installed, + } + } + /^(9).*/: { # do 9.x stretch stuff $php_version = "php7.0" package { 'mysql-server': ensure => installed, @@ -22,6 +28,9 @@ class dvwa::apache { } 'kali-rolling': { # do kali $php_version = "php7.4" + package { 'php7.4-mysql': + ensure => installed, + } } default: { $php_version = "php"