Am Mittwoch, 10. Oktober 2012 12:25:39 UTC+2 schrieb kish: > > On Wed, Oct 10, 2012 at 2:52 PM, Patrick > <patrick....@googlemail.com <javascript:>> wrote: > > Fixed now :) > > Just replaced $type (is used by puppet) with $logtype and used $name for > the > > files. > > > > But my last problem ist the template. > > I'm using <%= scope.lookupvar('oevd_opendj::logtype') %> and puppet > writes > > file1file2file3file4 > > How can i resolve that? > > You should iterate on logtype. > eg. > <% env_settings.each do |env_setting| -%> > <%= env_setting %> > <% end -%> > > That should help. >
Thanks. But i think there is a problem now: $InputFilename /opt/app/logs/<%= logtype %> I have to replace <%= logtype %> with the current logtype eg. if puppet create the errors.conf file so $InputFilename should be /opt/appt/errors. scope.lookupvar('oevd_opendj::name') %> does not work. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/S-GtRjoDxk4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.