voxpupuli/puppet-corosync

Clone names can't be overridden

Closed this issue · 9 comments

https://github.com/puppet-community/puppet-corosync/blob/master/lib/puppet/provider/cs_clone/pcs.rb#L59 sets the clone's CIB ID to <primitive>-clone, which is an arbitrary naming convention. The CIB ID should simply honor the cs_clone resource's namevar, name.

@fghaas are you interested in providing your patch as pull-request?

i absolutely agree that create MUST NOT change name (or the namevar, in general)

@fghaas do you suggest to not add the "-clone" postfix?

@bogdando I am suggesting to not override the user's choice for the namevar at all.

That makes sense I believe

Is this related to #176?

That is more complex AFAIK because the clone is different than the primtive

@fghaas That was a nice one as PCS does not support arbitrary id's for clones.

Here is the trick:
0f20634#diff-8a13e73d1c1985ded0fc337a4f685ab9R20

@roidelapluie Cool, thanks!

I plan to release a 5.0.0-beta 3 within the next days