Issue #5674 has been updated by Matthew Leather.

A workaround that seems to work for me (2.6.1) is adding this in the DSL before 
create_resource()

    scope.find_definition('testo::seconddef')

----------------------------------------
Bug #5674: resource auto-search/auto-loading doesn't work in ruby dsl
https://projects.puppetlabs.com/issues/5674

Author: Yuri Arabadji
Status: Accepted
Priority: Normal
Assignee: 
Category: language
Target version: 2.7.x
Affected Puppet version: 2.6.4
Keywords: 
Branch: 


It just doesn't work.

.pp:

<pre>
node 'default' {
        testo::seconddef { 'secdef_rsrc': }
}

**notice: Scope(Testo::Seconddef[secdef_rsrc]): Define: second**</pre>

while with .rb:

<pre>
node 'default' do
        create_resource 'testo::seconddef', 'secdef_rsrc'
end

**Cannot find definition Testo::Seconddef on node xxx**
</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://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.

Reply via email to