Editing Templates with hiera
Following mentioned is some of the portion of my .erb template,where I am able to define "LogFile" path and "LogFileSize" with hiera for per host configuration.
LogFile=<%= logfile %>
LogFileSize=<%= logfilesize %>
My requirement is if any of the parameter eg. LogFile or LogFileSize, if it is not applicable to some of the host,it should get commented (hashed out).
Example: on Host A,if LogFileSize is not applicable then it should be
#LogFileSize=<%= logfilesize %>