Rule of thumb with defined types: Resources that those declare will want to have the $title (or $name) or their enclosing defined type in their title to avoid clashes.
download_tomcat { "tomcat-dl-for-$name": version => $version } HTH, Felix On 04/23/2014 07:43 PM, Björn Becker wrote: > My problem is that if there're two tomcat instances with the same > version the module try to download the apache-tomcat tarball every time. > > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Duplicate declaration: File[download apache-tomcat-7.0.53] is > already declared in file /etc/puppet/modules/tomcat/manifests/init.pp:9; > cannot redeclare at /etc/puppet/modules/tomcat/manifests/init.pp:9 on > node YX -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/535906BA.3020005%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/d/optout.