Skip to content

Commit

Permalink
Make sure we still support ERB templates when provided
Browse files Browse the repository at this point in the history
`apache::mod::php` allowed to pass an ERB template, switching the
default template to EPP will break users that rely on this, so only
assume EPP template if the template name ends with .epp and process the
template as ERB in all other cases.
  • Loading branch information
smortex committed May 5, 2024
1 parent 06c4091 commit ed44d6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manifests/mod/php.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@

$manage_content = $source ? {
undef => $content ? {
undef => epp($template, { 'extensions' => $extensions }),
undef => $template ? {
/\.epp\z/ => epp($template, { 'extensions' => $extensions }),
default => template($template),
},
default => $content,
},
default => undef,
Expand Down

0 comments on commit ed44d6c

Please sign in to comment.