Commit 076160e9 authored by Matthieu FAURE's avatar Matthieu FAURE
Browse files

REFACTOR Remove useless code

parent c25d1805
$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 { $_phpinfo:
path => $_phpinfo,
ensure => file,
owner => 'www-data',
mode => '0644',
}
file_line { 'phpinfo':
path => $_phpinfo,
line => '<?php phpinfo(); ?>',
}
# Ensure PHP is running + PHP engine is FPM
archive { $_phpinfo_local:
ensure => 'present',
source => 'http://localhost/phpinfo.php',
require => Class['apache'],
}
->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,
manage_apache => true,
}
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