Issue #13101 has been updated by Patrick Carlisle. Status changed from Unreviewed to Duplicate
I think this is the same as #11912. Feel free to reopen if that doesn't seem right. ---------------------------------------- Bug #13101: Ruby DSL can not auto import file that only contains definitions https://projects.puppetlabs.com/issues/13101#change-56839 Author: Yongchao Gao Status: Duplicate Priority: High Assignee: Category: Target version: Affected Puppet version: 2.7.11 Keywords: Branch: My puppet version is 2.7.11 Below is the example code test/manifests/nodes.pp: class test::nodes { include test::node } test/manifests/node.rb: hostclass 'test::node' do create_resource 'test::add::now', "test xxxx" end test/manifests/add.pp: define test::add::now() { notify {"this a test": } } This will lead to: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Cannot find definition Test::Add::Now on node x But if we replace node.rb with an equivalent node.pp, such as: test/manifests/node.pp: class test::node { test::add::now { "test xxxx": } } Then everything will be ok. Note: add.pp only contains definitions, no classes. If we import add.pp manually or put an empty class in it and include it, no error appears too. So, I think this is an auto import problem of ruby dsl. -- 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://projects.puppetlabs.com/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.
