Closed valerioj closed 9 years ago
I am not sure if I want to add that dependency to the package class. You might not want to restart the service after an update in any case.
You can use Graylog2::Server::Package["graylog-server"] ~> Service["graylog-server"]
to define that dependency and notification.
Any other opinions?
I agree that forcing automatic restarting is not a good option as a default behavior, because it can interrupt the service. If it is possible to define that restarting behavior easily and is clearly documented, I would vote for keeping the current state.
The dependency notation I mentioned above is standard Puppet syntax and can be used to restart the service after a package update.
Closing this issue now.
it is ok, i will do it like that. thanks.
Hello, i'm using your puppet modules and i've noticed that when the package is updated, i have to restart all services by hand... this is not a desired method if, for example, we want to achieve full automation and 0 human interaction for maintenance...
i would suggest to add this line into the package.pp modules:
class graylog2::server::package( $package, $version, ) {
package { $package: ensure => $version,
new line:
}
}
Thanks in advance