So I am creating a module to manage some coldfusion servers.
I my init.pp I am trying to define a default site.
::coldfusion::site { 'default':
site_number => $site_number,
}
The resource is defined in manifest\site.pp as
define coldfusion::site (
$site_number = undef,
)
{
include coldfusion
include coldfusion::params
}
When I run the pdk test unit to run the unit tests for my module I get the error "Unknown resource type: '::coldfusion::site'".
I checked the spec fixtures modules and there is a symlink to the project files so it should be able to resolve the class.
Not sure whether the problem resides.
Thanks again to Matt for a basic but perhaps overly terse message, I spent some time looking over the docs again and after changing the resource definition from Class to Define and then removing the site_spec since it is no longer a class everything is working.