primitives can have more than one op

This commit is contained in:
Adam Spiers
2014-01-22 19:09:00 +00:00
parent bdd1e046d3
commit 241ac02271
2 changed files with 4 additions and 2 deletions

View File

@@ -69,7 +69,8 @@ module Chef::Libraries
# primitive keystone ocf:openstack:keystone \
# params os_username="crowbar" os_password="crowbar" os_tenant_name="openstack" \
# meta target-role="Started" is-managed="true" \
# op monitor interval="10s"
# op monitor interval="10" timeout=30s \
# op start interval="10s" timeout="240" \
#
# This method extracts a Hash from one of the params / meta / op lines.
def extract_hash(name, obj_definition, data_type)

View File

@@ -18,7 +18,8 @@ module Chef::RSpec
[ "is-managed", "true" ]
],
:op => [
[ "monitor", { "interval" => "10s" } ]
[ "monitor", { "timeout" => "60", "interval" => "10s" } ],
[ "start", { "timeout" => "240", "interval" => "10s" } ]
],
}
RA[:params_string] = resource_params_string(RA[:params])