move #crm_configure_command to Pacemaker::CIBObject
This commit is contained in:
@@ -144,6 +144,10 @@ module Pacemaker
|
|||||||
.gsub("'") { "\\'" }
|
.gsub("'") { "\\'" }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def crm_configure_command
|
||||||
|
"crm configure " + definition_string
|
||||||
|
end
|
||||||
|
|
||||||
def reconfigure_command
|
def reconfigure_command
|
||||||
"echo #{quoted_definition_string} | crm configure load update -"
|
"echo #{quoted_definition_string} | crm configure load update -"
|
||||||
end
|
end
|
||||||
|
@@ -27,8 +27,4 @@ class Pacemaker::Constraint::Colocation < Pacemaker::Constraint
|
|||||||
"#{self.class::TYPE} #{name} #{score}: " + resources.join(' ')
|
"#{self.class::TYPE} #{name} #{score}: " + resources.join(' ')
|
||||||
end
|
end
|
||||||
|
|
||||||
def crm_configure_command
|
|
||||||
"crm configure " + definition_string
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@@ -24,10 +24,6 @@ module Pacemaker
|
|||||||
"crm resource stop '#{name}'"
|
"crm resource stop '#{name}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
def crm_configure_command
|
|
||||||
"crm configure " + definition_string
|
|
||||||
end
|
|
||||||
|
|
||||||
# CIB object definitions look something like:
|
# CIB object definitions look something like:
|
||||||
#
|
#
|
||||||
# primitive keystone ocf:openstack:keystone \
|
# primitive keystone ocf:openstack:keystone \
|
||||||
|
Reference in New Issue
Block a user