OP#410 fix basic errrors
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
class confdroid_apache::server::dirs (
|
||||
|
||||
) inherits confdroid_apache::params {
|
||||
require confdroid_apache::server::user
|
||||
|
||||
if $ae_manage_dirs == true {
|
||||
# create main dir
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
## confdroid_apache::server:;user.pp
|
||||
# Module name: confdroid_apache
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary manage all aspects of the httpd service user, if enabled
|
||||
##############################################################################
|
||||
class confdroid_apache::server::user (
|
||||
|
||||
) inherits confdroid_apache::params {
|
||||
require confdroid_apache::server::install
|
||||
|
||||
if $ae_manage_user == true {
|
||||
group { $ae_user_name:
|
||||
ensure => present,
|
||||
name => $ae_user_name,
|
||||
gid => $ae_user_uid,
|
||||
allowdupe => false,
|
||||
}
|
||||
|
||||
user { $ae_user_name:
|
||||
ensure => present,
|
||||
name => $ae_user_name,
|
||||
allowdupe => false,
|
||||
comment => $ae_u_comment,
|
||||
uid => $ae_user_uid,
|
||||
gid => $ae_user_name,
|
||||
groups => $ae_u_groups,
|
||||
managehome => true,
|
||||
home => $ae_user_home,
|
||||
shell => $ae_user_shell,
|
||||
require => Group[$ae_user_name],
|
||||
}
|
||||
}
|
||||
|
||||
else {
|
||||
# do nothing
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user