-
-
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
Update map and mount defined types to address #59 #61
Conversation
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.
Once merged, we should be able to merge #58 as well |
@@ -24,14 +24,27 @@ | |||
# @param order Order in which entries will appear in the autofs map file. | |||
|
|||
define autofs::map ( | |||
String $mapcontent, | |||
Array $mapcontent, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That has not been in a module release yet and was just merged earlier today before I identified some limitations that needed to be addressed.
Brings up a point - are breaking changes only tied to releases or to any merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay \o/
manifests/map.pp
Outdated
mode => $mapmode, | ||
replace => $replace, | ||
require => Package[ 'autofs' ], | ||
notify => Service[ 'autofs' ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a bit nitpicking: no whitespace around []
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
target => $mapfile, | ||
content => template($maptempl), | ||
order => 1, | ||
autofs::map { $title: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
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.
closes #59