Displaying 1 result from an estimated 1 matches for "bkkrw".
Did you mean:
bi_rw
2012 Oct 22
3
Duplicate class declaration because of counterintuitive class scoping
...ition, I would
expect it to apply the resources
contained in the main class of the tomcat module (in
modules/tomcat/manifests/init.pp).
Instead I get:
$ puppet apply --modulepath modules --verbose site.pp
Duplicate declaration: Class[Profile::Tomcat] is already declared; cannot
redeclare at /home/bkkrw/Desktop/test/modules/profile/manifests/tomcat.pp:3
on node XXXXXX
If I instead use
class profile::tomcat {
include tomcat
notice(''Class profile::tomcat in module profile'')
}
then the catalog compiles successfully, but instead of applying the tomcat
class from modules/t...