define config($filename, $path, $fileserver) {
file { "$path/$filename":
source => [ "puppet://puppet/$fileserver/$filename.$fqdn",
"puppet://puppet/$fileserver/$filename.$hostgroup",
"puppet://puppet/$fileserver/$filename" ],
}
}

class tomcat {
config { ["server.xml", "/etc/tomcat5", "tomcat"]:
ensure => file,
require => Package["tomcat5"],
}
}

node 'hobgoblin' {
$hostgroup = "dev"

include tomcat
}