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
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: