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
immerda
Puppet Modules
webhosting
Commits
3cf5704f
Commit
3cf5704f
authored
Jun 07, 2020
by
mh
Browse files
ensure ordering for all users only when creating
parent
5af008fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/php/wordpress.pp
View file @
3cf5704f
...
@@ -133,7 +133,11 @@ define webhosting::php::wordpress(
...
@@ -133,7 +133,11 @@ define webhosting::php::wordpress(
manage_config
=>
$manage_config
,
manage_config
=>
$manage_config
,
config_webwriteable
=>
$config_webwriteable
,
config_webwriteable
=>
$config_webwriteable
,
manage_directories
=>
$manage_directories
,
manage_directories
=>
$manage_directories
,
require
=>
User
::
Sftp_only
[
$real_uid_name
],
}
if
$ensure
!=
'absent'
{
Apache
::
Vhost
::
Php
::
Wordpress
[
$name
]{
require
=>
User
::
Sftp_only
[
$real_uid_name
],
}
}
}
if
$run_mode
in
[
'fpm'
,
'fcgid'
]
{
if
$run_mode
in
[
'fpm'
,
'fcgid'
]
{
if
(
$run_uid_name
==
'absent'
){
if
(
$run_uid_name
==
'absent'
){
...
@@ -174,7 +178,7 @@ define webhosting::php::wordpress(
...
@@ -174,7 +178,7 @@ define webhosting::php::wordpress(
before
=>
File
[
"
${documentroot}
/wp-content/uploads"
],
before
=>
File
[
"
${documentroot}
/wp-content/uploads"
],
}
}
}
}
if
(
$run_mode
in
[
'fpm'
,
'fcgid'
])
and
(
$ensure
!=
'absent'
)
{
if
(
$run_mode
in
[
'fpm'
,
'fcgid'
])
{
User
::
Managed
[
$real_run_uid_name
]
->
Wordpress
::
Instance
[
$name
]
User
::
Managed
[
$real_run_uid_name
]
->
Wordpress
::
Instance
[
$name
]
}
}
}
}
...
...
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