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

Delay start of RabbitMQ on template changes #295

Merged
merged 1 commit into from Aug 14, 2015
Merged

Delay start of RabbitMQ on template changes #295

merged 1 commit into from Aug 14, 2015

Conversation

jschneiderhan
Copy link
Contributor

As mentioned in #245, I do not think the issue of default user/pass changes being disregarded is solved. The fact that notification on the rabbitmq-env.conf template is immediate causes the service to start before the values can be written to the rabbitmq.conf file by the next resource. This changes fixed the problem for me.

I thought perhaps delaying the notifications would cause all sorts of other recipes and LWRP to fail during the initial chef run because the service is not running, but then I noticed that the service is started down at the bottom of the recipe, so perhaps it is not an issue? It's working for me and my simple wrapper cookbook.

@michaelklishin
Copy link
Member

👍

This is very important in some other scenarios, e.g. when you want to install a plugin such as rabbitmq_clusterer or autocluster, which alter server boot and assume certain piece of configuration are in place by the time the node starts.

jjasghar pushed a commit that referenced this pull request Aug 14, 2015
Delay start of RabbitMQ on template changes
@jjasghar jjasghar merged commit 7606f08 into rabbitmq:master Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants