Commit 9b5cfcea authored by Matthieu FAURE's avatar Matthieu FAURE
Browse files

FEAT add test with phpinfo

parent de526386
Pipeline #6045 failed with stages
in 19 seconds
$apache_docroot = '/var/www/html'
$_phpinfo = "${apache_docroot}/phpinfo.php"
$_phpinfo_local = '/tmp/phpinfo.html'
class { 'nextcloud':
manage_apache => true,
apache_docroot => $apache_docroot
}
file { 't.php':
file { $_phpinfo:
path => $_phpinfo,
ensure => file,
owner => 'www-data',
......@@ -12,3 +17,16 @@ file_line { 'phpinfo':
path => $_phpinfo,
line => '<?php phpinfo(); ?>',
}
archive { $_phpinfo_local:
ensure => present,
source => 'http://localhost/phpinfo.php',
}
# Ensure PHP is running + PHP engine is FPM
file_line { 'php-fpm':
path => $_phpinfo_local,
line => '<tr><td class="e">Server API </td><td class="v">FPM/FastCGI </td></tr>',
replace => false,
append_on_no_match => false,
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment