Skip to content

Commit

Permalink
designate: do not use pacemaker as all the services are stateless
Browse files Browse the repository at this point in the history
Author:  Vincent Untz <[email protected]>
  • Loading branch information
Sumit Jamgade committed Apr 16, 2019
1 parent 9516233 commit 5223875
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chef/cookbooks/designate/definitions/designate_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
define :designate_service do
designate_service_name = "designate-#{params[:name]}"
ha_enabled = node[:designate][:ha][:enabled]
use_crowbar_pacemaker_service = ha_enabled && node[:pacemaker][:clone_stateless_services]

package "openstack-designate-#{params[:name]}"

Expand All @@ -25,9 +24,8 @@
supports status: true, restart: true
action [:enable, :start]
subscribes :restart, resources(template: node[:designate][:config_file])
provider Chef::Provider::CrowbarPacemakerService if use_crowbar_pacemaker_service
end
utils_systemd_service_restart designate_service_name do
action use_crowbar_pacemaker_service ? :disable : :enable
:enable
end
end

0 comments on commit 5223875

Please sign in to comment.