New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restarting DBus before install certmonger #20
Conversation
If DBus is updated before run this module and the machine not get restarted, the certmonger fails (among other services that relies on dbus service).
Not sure if managing the dbus service is within the scope of this module. Even if we do this, I think we should have a |
Also, if this problem appears only when upgrading from dbus 7.4 to 7.5, then is it really necessary for this module to handle that specific condition? |
Adding an option to restart dbus service
Added manage_dbus_service option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, and it's reasonably turned off by default. Which we can enable for such cases as that update.
manifests/init.pp
Outdated
service { 'dbus': | ||
ensure => running, | ||
enable => true, | ||
restart => '', |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be good to properly define the dbus service - for example, there's this module available on the puppet forge, and the service definition:
https://github.com/bodgit/puppet-dbus/blob/master/manifests/service.pp
manifests/init.pp
Outdated
service { 'dbus': | ||
ensure => running, | ||
enable => true, | ||
restart => '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really usefuly to set this, according to the doc: "Specify a restart command manually. If left unspecified, the service will be stopped and then started"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What options to we have for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, you can actually define the proper restart command if you want. But such a service, there's no use doing so I guess.
I think the commit is ready, @locknut what do you think? |
Sorry it's taken a few days to get to this. Had a look. Don't think this PR can be accepted (yet?) for a number of reasons, and maybe we've misunderstood, so help us understand if we've got this wrong.
Sorry about bringing up all of these issues. We haven't experienced the bug (yet?) so we're relying on you guys on this PR more than usual. |
Seems we won't need this anymore. |
If DBus is updated before run this module and the machine not get
restarted, the certmonger fails (among other services that relies
on dbus service).