require ::File.join(::File.dirname(__FILE__), *%w(.. .. libraries pacemaker resource primitive)) module Chef::RSpec module Pacemaker module Config KEYSTONE_PRIMITIVE = ::Pacemaker::Resource::Primitive.new('keystone') KEYSTONE_PRIMITIVE.agent = "ocf:openstack:keystone" KEYSTONE_PRIMITIVE.params = [ [ "os_password", "adminpw" ], [ "os_auth_url", "http://node1:5000/v2.0" ], [ "os_username", "admin" ], [ "os_tenant_name", "openstack" ], [ "user", "openstack-keystone" ], ] KEYSTONE_PRIMITIVE.meta = [ [ "target-role", "Started" ], [ "is-managed", "true" ] ] KEYSTONE_PRIMITIVE.op = [ [ "monitor", { "timeout" => "60", "interval" => "10s" } ], [ "start", { "timeout" => "240", "interval" => "10s" } ] ] KEYSTONE_PRIMITIVE_DEFINITION = <<'EOF' primitive keystone ocf:openstack:keystone \ params os_auth_url="http://node1:5000/v2.0" os_password="adminpw" os_tenant_name="openstack" os_username="admin" user="openstack-keystone" \ meta is-managed="true" target-role="Started" \ op monitor interval="10s" timeout="60" start interval="10s" timeout="240" EOF end end end