i use "puppet apply" to test the code:
module name: zx
file /etc/puppet/modules/test/manifests/init.pp:
class zx {
include zx::install
}
include zx
file /etc/puppet/modules/test/manifests/install.pp:
class zx::install {
(some resource code)
}
and then, i use "puppet apply -tv --noop /etc/puppet/modules/zx/manifests/init.pp", and error :
Error: Could not find class zx::install for xxxx on node xxxx
i want to know why???
because i use "puppet apply modules/zx/test/init.pp", it works. and i copy modules/zx/manifests/init.pp to another dir, then "puppet apply", it works too. that is very strange.
↧