Removed enclosing defined conditional.

This commit is contained in:
Yolanda Robla 2015-03-20 12:34:29 +01:00
parent 3943f3ddb2
commit 0ef323a6fa

View File

@ -62,17 +62,13 @@ class nslcd (
subscribe => File['/etc/nslcd.conf'],
}
} else {
if defined(Service['nslcd']) {
service { 'nslcd':
ensure => stopped,
enable => false,
}
service { 'nslcd':
ensure => stopped,
enable => false,
}
if defined(Service['nscd']) {
service { 'nscd':
ensure => stopped,
enable => false,
}
service { 'nscd':
ensure => stopped,
enable => false,
}
package { $packagename: ensure => absent }
}