I working with a dynamic config file template, I have a section for global options, then a dynamic section that i want to populate with multiple defined entries.
example config file
#global options
config_option1=setting1
config_option2=setting2
config_option3=setting3
...
#dynamic section
entry=dynamic entry number 1
option1=setting1
option2=setting2
option3=setting3
entry=dynamic entry number 2
option1=setting1
option2=setting2
option3=setting3
....
Is there a way i can dynamically create these entries in a single template?
for instance a defined type:
define application::configs (
$entry,
$option1
$option2
$option3
) {
#not sure what I would put here
}
Then pull those entries into the .erb with some kind of function? Is this even possible to do?