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