Removed enclosing defined conditional.
This commit is contained in:
parent
3943f3ddb2
commit
0ef323a6fa
@ -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 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user