Issue #2998 has been updated by Markus Roberts.
Status changed from Investigating to Needs more information
Assigned to changed from Markus Roberts to Dan Bode
Target version set to Puppet - 0.25.3
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.home
----------------------------------------
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.