From e5ad55b506490bed664582b9d2bba47e74881a07 Mon Sep 17 00:00:00 2001 From: Florian Haas Date: Wed, 15 Jul 2015 13:22:48 +0200 Subject: [PATCH] Add dummy resource to group if operating without a VIP As seen in https://github.com/puppet-community/puppet-corosync/issues/152, cs_group enforces a primitives array with a length >1. As a silly workaround, add a Dummy resource just so that the provider is happy. --- modules/iscsirbdha/manifests/viptargetresourcegroup.pp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/iscsirbdha/manifests/viptargetresourcegroup.pp b/modules/iscsirbdha/manifests/viptargetresourcegroup.pp index f13b89a..343ac4a 100644 --- a/modules/iscsirbdha/manifests/viptargetresourcegroup.pp +++ b/modules/iscsirbdha/manifests/viptargetresourcegroup.pp @@ -36,9 +36,16 @@ ensure => $ensure, monitor_interval => $monitor_interval, } + cs_primitive { "p_dummy_${name}": + ensure => $ensure, + primitive_class => 'ocf', + primitive_type => 'Dummy', + provided_by => 'heartbeat', + } cs_group { "g_${name}": ensure => $ensure, - primitives => ["p_target_${name}",], + primitives => ["p_target_${name}", + "p_dummy_${name}",], } }