Oops grabbed the path from the puppet output not the directory structure.
The files should be:
/etc/puppet/modules/sandbox/one/manifests/init.pp
class one {
include two
testfn { test:}
}
/etc/puppet/modules/sandbox/two/manifests/init.pp
class two::test {
testfn {test: }
}
the following class works as it is in the same module as the define:
/etc/puppet/modules/sandbox/two/manifests/test.pp
class two::test {
testfn {test: }
}
I tried ::one::testfn{test: } that also failed with the error:
Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid tag
"::one::testfn" at /etc/puppet/modules/sandbox/one/manifests/init.pp:3 on node
bos-test01.contentstore.net
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.