Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Adullact
vagrant-nextcloud
Commits
076160e9
Commit
076160e9
authored
Oct 06, 2019
by
Matthieu FAURE
Browse files
REFACTOR Remove useless code
parent
c25d1805
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/default.pp
View file @
076160e9
$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
,
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment