here is my code, yaml and error:
what am i missing here?
define tomcat::wars($environment,$hostname) {
$instance=$name
$wars = hiera_hash('wars')
create_resources('tomcat::war',$wars)
}
class tomcat::war ( $wars = {} ) {
notice($wars)
}
wars:
'card-managment':
app_version : '1.44'
app_url : 'puppet:///card-management/${VERSION}/card-management-${VERSION}.war'
app_target_dir : 'card-management'
'perscription-transfer':
app_version : '1.18'
app_url : 'puppet:///prescription-transfer-webapp/${VERSION}/prescription-transfer-webapp-${VERSION}.war'
app_target_dir : 'perscription-transfer'
'pharmacy':
app_version : '1.62'
app_url : 'puppet:///pharmacy-webapp/${VERSION}/pharmacy-webapp-${VERSION}.war'
app_target_dir : 'pharmacy-webapp'
could not create resource of unknown type tomcat::war at /etc/puppet/modules/tomcat/manifests/wars.pp:4 on node
pokrsx1puppetagent.ghc.org