Displaying 1 result from an estimated 1 matches for "resource1_nam".
Did you mean:
resource1_name
2013 Dec 13
3
Resource ordering only using Hiera?
...le to
define it just in hiera. Therefore, I attempted to create a generic
wrapper define for resource ordering (the following doesn''t actually
work, will get to the error):
#Define for resource ordering or subscribing
define basic::order_resource::ordering (
$resource1_type = undef,
$resource1_name = undef,
$resource2_type = undef,
$resource2_name = undef,
$notify = false,
){
if $notify {
$resource1_type[$resource1_name] ~> $resource2_type[$resource2_name]
} else {
$resource1_type[$resource1_name] -> $resource2_type[$resource2_name]
}
}
And a wrapper class...