move #crm_configure_command to Pacemaker::CIBObject

This commit is contained in:
Adam Spiers
2014-03-21 17:49:01 +00:00
parent 3bb5d93b80
commit e0869e74f1
3 changed files with 4 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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 \