diff --git a/libraries/pacemaker/resource.rb b/libraries/pacemaker/resource.rb index 38c109f..e953316 100644 --- a/libraries/pacemaker/resource.rb +++ b/libraries/pacemaker/resource.rb @@ -24,6 +24,10 @@ 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 \ diff --git a/libraries/pacemaker/resource/group.rb b/libraries/pacemaker/resource/group.rb index 6206ae7..6155a72 100644 --- a/libraries/pacemaker/resource/group.rb +++ b/libraries/pacemaker/resource/group.rb @@ -35,8 +35,4 @@ class Pacemaker::Resource::Group < Pacemaker::Resource str end - def crm_configure_command - "crm configure " + definition_string - end - end