The smartd service resource has been wrapped in an if statement and controlled by the $manage_service parameter, so that a user of the module can choose manage the service externally.
If the smartd package is not installed, puppet will attempt to stop a service that doesn't exist. For this reason, I believe the smartd service should not be managed if $ensure is set to absent or purged.
In fact, if smartd is getting uninstalled, the deb script will take care to stop the service anyway.
The smartd service resource has been wrapped in an if statement and controlled by the
$manage_service
parameter, so that a user of the module can choose manage the service externally.If the smartd package is not installed, puppet will attempt to stop a service that doesn't exist. For this reason, I believe the smartd service should not be managed if
$ensure
is set toabsent
orpurged
.In fact, if smartd is getting uninstalled, the deb script will take care to stop the service anyway.