Skip to content

Commit

Permalink
Add dummy resource to group if operating without a VIP
Browse files Browse the repository at this point in the history
As seen in
voxpupuli/puppet-corosync#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.
  • Loading branch information
fghaas committed Jul 15, 2015
1 parent afdbb7e commit a35f9ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/iscsirbdha/manifests/viptargetresourcegroup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}",],
}
}

Expand Down

0 comments on commit a35f9ba

Please sign in to comment.