-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Multiple consul::service with same name causes ArgumentError #46
Comments
Puppet does not allow duplicate resources to have the same name. What if you did a PR that had a variable called "$service_name", which could still default to "$name" but would allow you to still set it? |
Yep that's the exact fix I was about to PR :) |
:( you're right: https://docs.puppetlabs.com/puppet/latest/reference/lang_resources.html#uniqueness I thought when I wrote this code that only $title had to be unique. |
Yea I... also thought that it was just title. But I still get confused on the title/name distinction too. |
I need to create multiple services with the same name (but unique ID) on the same agent, e.g. a service definition like:
So I created the resources:
And puppet (2.7) is failing with:
The text was updated successfully, but these errors were encountered: