Commit 31dee799 authored by mh's avatar mh
Browse files

linting

parent 1500994c
......@@ -211,23 +211,19 @@ define webhosting::common (
}
if $run_mode in ['fpm','fcgid'] {
if ($run_uid=='absent') and ($ensure != 'absent') {
fail("you need to define run_uid for ${name} on ${::fqdn} to use fpm or fcgid")
fail("you need to define run_uid for ${name} on ${facts['networking']['fqdn']} to use fpm or fcgid")
}
$real_run_uid = $run_uid ? {
'iuid' => iuid($real_run_uid_name,'webhosting'),
default => $run_uid,
}
$shell = $::operatingsystem ? {
/^(Debian|Ubuntu)$/ => '/usr/sbin/nologin',
default => '/sbin/nologin',
}
user::managed { $real_run_uid_name:
ensure => $ensure,
manage_group => false,
managehome => false,
homedir => $vhost_path,
uid => $real_run_uid,
shell => $shell,
shell => '/sbin/nologin',
}
if $user_access == 'sftp' {
if $ensure == 'absent' {
......
Markdown is supported
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