Installing Solr using tomcat7 puppet module

I have managed to develop a tomcat 7 puppet module working on Centos 6.4, and now would like to install Solr on the same tomcat instance. Could not find any example that addresses this, or maybe its obscured by my lack of knowledge of puppet:

here is what i thought can work ( correct me if i am wrong ) in the tomcat manifests, i have solr.pp

modules/tomcat/manifests $more solr.pp class solr { file { '/usr/share/apache-tomcat-7.0.42/webapps/solr.war': ensure => present, owner => root, group => root, mode => 644, source => 'puppet:///modules/solr/apache-solr-3.6.1.war', notify => Service['tomcat'], } file { '/usr/share/apache-tomcat-7.0.42/solr': ensure => present, source => 'puppet:///modules/solr/solr', recurse => true, require => File[''/usr/share/apache-tomcat-7.0.42/webapps/solr.war'], notify => Service['tomcat'], }$solr_dirs = [ "'/usr/share/apache-tomcat-7.0.42/webapps/solr/", "'/usr/share/apache-tomcat-7.0.42/webapps/solr/WEB-INF/",
'/usr/share/apache-tomcat-7.0.42/webapps/solr/WEB-INF/lib/"]
file { $solr_dirs: ensure => "directory", } file { ''/usr/share/apache-tomcat-7.0.42/webapps/solr/WEB-INF/web.xml': ensure => present, owner => root, group => root, mode => 644, source => 'puppet:///modules/solr/web.xml', require => File[$solr_dirs],
}

file { '/usr/share/apache-tomcat-7.0.42/webapps/solr/WEB-INF/lib/apache-solr-dataimporthandler-3.6.1.jar':
ensure => present,
owner   => root,
group   => root,
mode    => 644,
source => 'puppet:///modules/solr/apache-solr-dataimporthandler-3.6.1.jar',

more