Files
cookbook-pacemaker/spec/fixtures/location_constraint.rb
2014-03-21 18:12:40 +00:00

16 lines
506 B
Ruby

require ::File.expand_path('../../libraries/pacemaker/constraint/location',
::File.dirname(__FILE__))
module Chef::RSpec
module Pacemaker
module Config
LOCATION_CONSTRAINT = \
::Pacemaker::Constraint::Location.new('location1')
LOCATION_CONSTRAINT.rsc = 'primitive1'
LOCATION_CONSTRAINT.score = '-inf'
LOCATION_CONSTRAINT.node = 'node1'
LOCATION_CONSTRAINT_DEFINITION = 'location location1 primitive1 -inf: node1'
end
end
end