-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clone names can't be overridden #149
Comments
Cloned resources currently *must* be named "<primitive id>-clone". See voxpupuli/puppet-corosync#149 for upstream bug report.
Cloned resources currently *must* be named "<primitive id>-clone". See voxpupuli/puppet-corosync#149 for upstream bug report.
Cloned resources currently *must* be named "<primitive id>-clone". See voxpupuli/puppet-corosync#149 for upstream bug report.
@fghaas are you interested in providing your patch as pull-request? i absolutely agree that |
@fghaas do you suggest to not add the "-clone" postfix? |
@bogdando I am suggesting to not override the user's choice for the |
That makes sense I believe |
Is this related to #176? |
That is more complex AFAIK because the clone is different than the primtive |
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
- Stop cs_clone before removing (crm provider) - Use resource name as clone id (pcs provider) - closes voxpupuli#149 - Add acceptance tests and improve unit tests Signed-off-by: Julien Pivotto <[email protected]>
@fghaas That was a nice one as PCS does not support arbitrary id's for clones. Here is the trick: |
@roidelapluie Cool, thanks! |
I plan to release a 5.0.0-beta 3 within the next days |
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 thecs_clone
resource's namevar,name
.The text was updated successfully, but these errors were encountered: