prefix {start,stop}_command with "crm_"
to make more explicit and consistent with crm_configure_command.
This commit is contained in:
@@ -15,7 +15,7 @@ class Chef
|
|||||||
raise "Cannot start non-existent #{cib_object_class.description} '#{name}'"
|
raise "Cannot start non-existent #{cib_object_class.description} '#{name}'"
|
||||||
end
|
end
|
||||||
return if @current_cib_object.running?
|
return if @current_cib_object.running?
|
||||||
execute @current_cib_object.start_command do
|
execute @current_cib_object.crm_start_command do
|
||||||
action :nothing
|
action :nothing
|
||||||
end.run_action(:run)
|
end.run_action(:run)
|
||||||
new_resource.updated_by_last_action(true)
|
new_resource.updated_by_last_action(true)
|
||||||
@@ -28,7 +28,7 @@ class Chef
|
|||||||
raise "Cannot stop non-existent #{cib_object_class.description} '#{name}'"
|
raise "Cannot stop non-existent #{cib_object_class.description} '#{name}'"
|
||||||
end
|
end
|
||||||
return unless @current_cib_object.running?
|
return unless @current_cib_object.running?
|
||||||
execute @current_cib_object.stop_command do
|
execute @current_cib_object.crm_stop_command do
|
||||||
action :nothing
|
action :nothing
|
||||||
end.run_action(:run)
|
end.run_action(:run)
|
||||||
new_resource.updated_by_last_action(true)
|
new_resource.updated_by_last_action(true)
|
||||||
|
@@ -16,11 +16,11 @@ module Pacemaker
|
|||||||
!! cmd.stdout.include?("resource #{name} is running")
|
!! cmd.stdout.include?("resource #{name} is running")
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_command
|
def crm_start_command
|
||||||
"crm resource start '#{name}'"
|
"crm resource start '#{name}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
def stop_command
|
def crm_stop_command
|
||||||
"crm resource stop '#{name}'"
|
"crm resource stop '#{name}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user