Skip to content

Commit

Permalink
Merge pull request #2112 from dirkmueller/neutron_hatool
Browse files Browse the repository at this point in the history
neutron: restart neutron-ha-tool when the config file changes
  • Loading branch information
dirkmueller authored Apr 26, 2019
2 parents 450d8de + 65bdb6c commit b865297
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions chef/cookbooks/neutron/recipes/network_agents_ha.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@
)
end

service "neutron-l3-ha-service" do
supports status: true, restart: true
subscribes :restart, resources(file: "/etc/neutron/neutron-l3-ha-service.yaml")
subscribes :restart, resources(template: "/root/.openrc")
subscribes :restart, resources(file: "/etc/neutron/os_password")

provider Chef::Provider::CrowbarPacemakerService
end

# Reload systemd when unit file changed
bash "reload systemd after neutron-l3-ha-service update" do
code "systemctl daemon-reload"
Expand Down

0 comments on commit b865297

Please sign in to comment.