Here is a fun one :)
assume
#test/manifests/init.pp
class test{
file{'/tmp/testdir':
content => 'test',
}
}
class test2::test{
require ::test
file{'/tmp/test2test':
content => 'blah',
}
}
this does not work and produces the following output
Could not find dependency Class[::test] for Class[test2::test]
Just for a sanity check, I also tested the the below file which should be equivalent.
#test2/manifests/test.pp
class test2::test{
include ::test
file{'/tmp/test2test3':
content => 'blah',
require => Class['::test'],
}
}
produces the expected output:
notice: //test/File[/tmp/testdir]/content: is absent, should be {md5}5a105e8b9d40e1329780d62ea2265d8a (noop)
notice: //test2::test/File[/tmp/test2test3]/content: is absent, should be {md5}6f1ed002ab5595859014ebf0951522d9 (noop)
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account
Could you please give a complete description of the configuration you're using to generate this? With either version (the include or the require) on 0.25.x I get an error:
err: Invalid tag "::test" at test2/manifests/init.pp:2 on node phage.homehere is the exact code that I used to validate this.
untar, cd into modules2, then run puppet --modulepath PATH/TO/modules2/ modules2/test.pp
This is definitely a bug, and should be a pretty easy fix.