Hi,
I recently had an issue with epp template within a defined resource type.
Let’s assume the following code snippets:
# modules/test/manifests/init.pp
class test {
::test::files { 'test':
param1 => 'value',
}
}
# modules/test/manifests/files.pp
define test::files (
$param1 = '',
){
file { "/tmp/${title}":
ensure => file,
content => epp('test/files.epp'),
}
}
# modules/test/templates/files.epp
<%= $param1 %>
The parameter Param1 will not get the data provided within define declaration.
Is this desired behaviour?
Should I open a bug?
Is this a known bug?
When passing the param1 data via hash to epp function, data will get added to
the template.
Best,
Martin
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/1672269B-ADC4-4CFB-9D82-331FEC337F24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.