nscd: Move nscd to own module.
This commit is contained in:
parent
979f22cda0
commit
d9e28a1a06
2 changed files with 20 additions and 8 deletions
|
@ -20,6 +20,10 @@ class ldap::auth inherits ldap::client {
|
||||||
|
|
||||||
$ldap_uri = inline_template('<%= @ldap_server.join(" ") -%>')
|
$ldap_uri = inline_template('<%= @ldap_server.join(" ") -%>')
|
||||||
|
|
||||||
|
if $::kernel == "Linux" {
|
||||||
|
include nscd
|
||||||
|
}
|
||||||
|
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
"centos","fedora","redhat": {
|
"centos","fedora","redhat": {
|
||||||
case $::operatingsystemrelease {
|
case $::operatingsystemrelease {
|
||||||
|
@ -89,14 +93,6 @@ class ldap::auth inherits ldap::client {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
package { "nscd":
|
|
||||||
ensure => installed,
|
|
||||||
}
|
|
||||||
service { "nscd":
|
|
||||||
ensure => running,
|
|
||||||
enable => true,
|
|
||||||
require => Package["nscd"],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Ubuntu: {
|
Ubuntu: {
|
||||||
package { "ldap-auth-client":
|
package { "ldap-auth-client":
|
||||||
|
|
16
nscd/manifests/init.pp
Normal file
16
nscd/manifests/init.pp
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
|
||||||
|
# Install name service cache daemon
|
||||||
|
#
|
||||||
|
class nscd {
|
||||||
|
|
||||||
|
package { "nscd":
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
|
||||||
|
service { "nscd":
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
require => Package["nscd"],
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue