Issue #2998 has been updated by Dan Bode. File modules.tgz added
here is the exact code that I used to validate this. untar, cd into modules2, then run puppet --modulepath PATH/TO/modules2/ modules2/test.pp ---------------------------------------- Bug #2998: cannot specify root namespace with require function http://projects.reductivelabs.com/issues/2998 Author: Dan Bode Status: Needs more information Priority: Normal Assigned to: Dan Bode Category: functions Target version: 0.25.3 Affected version: 0.25.2rc2 Keywords: Branch: Here is a fun one :) assume #test/manifests/init.pp <pre> class test{ file{'/tmp/testdir': content => 'test', } } </pre> #test2/manifests/test.pp <pre> class test2::test{ require ::test file{'/tmp/test2test': content => 'blah', } } </pre> this does not work and produces the following output <pre> Could not find dependency Class[::test] for Class[test2::test] </pre> Just for a sanity check, I also tested the the below file which should be equivalent. #test2/manifests/test.pp <pre> class test2::test{ include ::test file{'/tmp/test2test3': content => 'blah', require => Class['::test'], } } </pre> produces the expected output: <pre> 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) </pre> -- 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 -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en.
