-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
autofs::map has issues when order not set #59
Comments
@traylenator if you don't have time to work this, I can update the code as well. |
Moved all mapfile generation to the map defined type provided by @traylenator and instead have the mount defined type calling and passing values to the map defined type (if mapfile is not empty). This allows all current functionality to continue working, as well as, allowing the map defined type to be used standalone AND maintain the existing mapfile generation feature set. Tests and templates have been updated to account for the changes.
Update map and mount defined types to address #59
As a comment, having two concat::fragments with the same order is just fine, loads of stuff would not work. |
It was a fine idea to make |
The
autofs::map
defined type will completely replace the contents of the target concat file if theorder
parameter is not set. This is because theconcat::fragment
set within bothautofs::mount
andautofs::map
default to1
, which will cause concat to replace the content in that location (in the case ofautofs::map
it will replace the entire array that was laid down inautofs::mount
).My suggestion to @traylenator is that
autofs::map
should be a wholly separate defined type that does not interact with anything laid down byautofs::mount
, otherwise we end up with redundant code and functionality.If the concern is adding additional lines to an existing file, updating the array in the code or, better yet, in the hieradata is the appropriate place to do so.
If the concern is the ability to manage a mapfile outside of the
autofs::mount
block, then let's make theautofs::map
file a completely separate define type meant to be called standalone.Additionally, we could completely remove mapfile concat code in
autofs::mount
and instead haveautofs::mount
callautofs::map
The text was updated successfully, but these errors were encountered: