Skip to content

Commit ed7d7e4

Browse files
Cocker Kochekohl
authored andcommitted
Accept EPP-Template for Settings-File
1 parent 7f29302 commit ed7d7e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

manifests/settings_file.pp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@
3333
if $ensure == 'absent' {
3434
$content = undef
3535
} else {
36-
$content = template($template_path)
36+
$content = if $template_path.match(/\.epp$/) {
37+
epp($template_path)
38+
} elsif $template_path.match(/\.erb$/) {
39+
template($template_path)
40+
} else {
41+
fail("${template_path}: Template not supported by Module ${module_name}")
42+
}
3743
}
3844

3945
file {$path:

0 commit comments

Comments
 (0)