Skip to content
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

Remove the notification for consul service restart #443

Merged
merged 1 commit into from
May 27, 2017

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented May 27, 2017

Fixes an issue #438

We don't need to notify consul service by changes of poise_service_user resource:

  • It is useless for initial converge because the service will start automatically after and
    it happens after user creation.

  • We should not restart the service automatically even if the name of service user has been
    changed for an existing installation. In this case the restart is harmful, because consul data
    (/var/lib/consul/*) is still owned by an old user, so it should be handled by a special procedure: 1)stop service, 2)change data files ownership, 3)start service.
    So, it's out of this cookbook's scope.

We don't need to notify consul service by changes of `poise_service_user` resource:

- It is useless for initial converge because the service will start automatically after and
it happens _after_ user creation.

- We should not restart the service automatically even if the name of service user has been
changed for an existing installation. In this case the restart is harmful, because consul data
(/var/lib/consul/*) is still owned by an old user, so it should be handled by a special order:
1) stop service, 2) change data files ownership, 3) start service.

So, it's out of this cookbook's scope.
@legal90 legal90 merged commit 95be769 into sous-chefs:master May 27, 2017
@legal90 legal90 deleted the fix-service-restart branch May 27, 2017 19:52
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant