Compare commits

...

2 Commits

3 changed files with 49 additions and 4 deletions

View File

@ -10,6 +10,10 @@ class wmdeit_ldap::lam(
$master_password = "lam", $master_password = "lam",
$master_password_salt = "ABCD1234", $master_password_salt = "ABCD1234",
$configs = {
"wmde" => ""
}
) { ) {
$arcfile = "/tmp/$archive" $arcfile = "/tmp/$archive"
$extractdir = "/var/www/ldapaccountmanager" $extractdir = "/var/www/ldapaccountmanager"
@ -67,10 +71,31 @@ class wmdeit_ldap::lam(
content => template("wmdeit_ldap/lam-config.cfg.erb"), content => template("wmdeit_ldap/lam-config.cfg.erb"),
owner => "www-data", owner => "www-data",
} -> } ->
file {"$docroot/config/wmde.conf": file {"$docroot/config/profiles":
ensure => file, ensure => directory,
content => template("wmdeit_ldap/wmde.conf.erb"), } ->
owner => "www-data", file {"$docroot/config/pdf":
ensure => directory,
}
$configs.each | String $name, $conf | {
file {"$docroot/config/$name.conf":
ensure => file,
content => template("wmdeit_ldap/wmde.conf.erb"),
owner => "www-data",
require => File["$docroot/config/pdf"],
} ->
file {"$docroot/config/profiles/$name":
ensure=>directory
}->
file{"$docroot/config/profiles/$name/default.user":
ensure=>file,
content => template("wmdeit_ldap/default.user.erb")
} ->
file{"$docroot/config/profiles/$name/default.group":
ensure=>file,
content => template("wmdeit_ldap/default.group.erb")
}
} }
} }

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,19 @@
shadowAccount_shadowWarning: 10
shadowAccount_shadowInactive: 10
shadowAccount_shadowMin: 1
shadowAccount_shadowMax: 365
sambaAccount_useunixpwd: true
sambaAccount_acctFlagsN: false
sambaAccount_acctFlagsX: true
sambaAccount_acctFlagsD: false
sambaAccount_homeDrive: U:
sambaSamAccount_useunixpwd: true
sambaSamAccount_sambaAcctFlagsN: false
sambaSamAccount_sambaAcctFlagsX: true
sambaSamAccount_sambaAcctFlagsD: false
sambaSamAccount_sambaHomeDrive: U:
sambaSamAccount_group: 513
posixAccount_homeDirectory: /home/$user
posixAccount_loginShell: /bin/bash
asteriskAccount_AstAccountHost: dynamic
asteriskAccount_AstAccountContext: default