Added dependency on authconfig package to kerberos, ldap and pam modules
Fixes #2.
This commit is contained in:
parent
18af82f97f
commit
5924caabe1
3 changed files with 16 additions and 6 deletions
|
@ -4,6 +4,11 @@
|
|||
class pam::common {
|
||||
|
||||
case $::operatingsystem {
|
||||
"centos","redhat","fedora": {
|
||||
package { "authconfig":
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
"ubuntu": {
|
||||
package { "libpam-runtime":
|
||||
ensure => installed,
|
||||
|
@ -28,8 +33,9 @@ class pam::mkhomedir {
|
|||
case $::operatingsystem {
|
||||
"centos","redhat","fedora": {
|
||||
exec { "authconfig --enablemkhomedir --update":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => "egrep '^USEMKHOMEDIR=yes\$' /etc/sysconfig/authconfig",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => "egrep '^USEMKHOMEDIR=yes\$' /etc/sysconfig/authconfig",
|
||||
require => Package["authconfig"],
|
||||
}
|
||||
}
|
||||
"ubuntu": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue