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

zookeeper_config doesn't notify Chef if updated #109

Closed
hulu1522 opened this issue Nov 5, 2014 · 1 comment
Closed

zookeeper_config doesn't notify Chef if updated #109

hulu1522 opened this issue Nov 5, 2014 · 1 comment

Comments

@hulu1522
Copy link
Contributor

hulu1522 commented Nov 5, 2014

zookeeper_config is used to create the configuration file for Zookeeper. As with many config files it is necessary to restart the service if this file changes. The current LWRP fails to let Chef know so there is no notifications happened when updated.

I have a PR coming that will fix it so the following resource now works:

zookeeper_config "#{node[:zookeeper][:install_dir]}/zookeeper-#{node[:zookeeper][:version]}/conf/zoo.cfg" do
  config node[:zookeeper][:config]
  user   node[:zookeeper][:user]
  action :render
  notifies :restart, "runit_service[zookeeper]", :delayed
end
@hulu1522
Copy link
Contributor Author

hulu1522 commented Nov 6, 2014

Resolved with commit dcb41b9

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

No branches or pull requests

1 participant