Skip to content
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

Prevent shuffling with mergemode prepend or append #11

Open
badgerious opened this issue Aug 8, 2015 · 0 comments
Open

Prevent shuffling with mergemode prepend or append #11

badgerious opened this issue Aug 8, 2015 · 0 comments
Labels
enhancement New feature or request

Comments

@badgerious
Copy link
Contributor

As noted in the README, if multiple puppet resources manage the same variable and are all in prepend/append mode, each will promote its value to the beginning/end when it is evaluated (this will happen on every puppet run). This can be solved by using an array of values in a single resource, but this doesn't work well for multiple third party modules that want to prepend/append independently.

Possible solutions:

  1. A prependonce and appendonce option that will prepend/append if the value does not appear, but will leave the value where it is if it does. Leave prepend and append as is for backward compatibility.
  2. A priority option that allows an order to be specified among the resources (a la puppet firewall rules). Same priority resources would be allowed in any order. Some potentially odd edge cases (value => 'x', priority => 2 for one resource and value => ['x', 'y'], priority => 1 for another).

To anyone who uses this module and cares about this, please comment. I'll not make the time to look into this unless I hear feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant