The Puppet Labs Issue Tracker has Moved:

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using See the following page for information on filing tickets with JIRA:

Bug #5674

resource auto-search/auto-loading doesn't work in ruby dsl

Added by Yuri Arabadji almost 5 years ago. Updated about 2 years ago.

Status:ClosedStart date:12/25/2010
Priority:NormalDue date:
Assignee:eric sorenson% Done:


Target version:-
Affected Puppet version:2.6.4 Branch:

We've Moved!

Ticket tracking is now hosted in JIRA:


It just doesn’t work.


node 'default' {
    testo::seconddef { 'secdef_rsrc': }

**notice: Scope(Testo::Seconddef[secdef_rsrc]): Define: second**

while with .rb:

node 'default' do
    create_resource 'testo::seconddef', 'secdef_rsrc'

**Cannot find definition Testo::Seconddef on node xxx**

Related issues

Related to Puppet - Feature #16937: Improved Ruby DSL Closed 10/11/2012


#1 Updated by James Turnbull almost 5 years ago

  • Category set to language
  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Nigel Kersten

This should work right Nigel?

#2 Updated by Nigel Kersten over 4 years ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Nigel Kersten)
  • Target version set to 2.7.x

#3 Updated by Egon Kastelijn over 4 years ago

Can someone please assign this bug to a developer again?

kind regards,


#4 Updated by James Turnbull over 4 years ago

Egon – it’s not assigned to anyone because it’s not currently being worked on. We’ve accepted the bug but it won’t be assigned until someone in development is available to work on the issue.

#5 Updated by Matthew Leather about 4 years ago

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


#6 Updated by Anonymous almost 3 years ago

  • Target version deleted (2.7.x)

#7 Updated by Anonymous almost 3 years ago

As the 2.7.x line is winding down, I am removing the target at 2.7.x from tickets in the system. The 2.7 line should only receive fixes for major problems (crashes, for instance) or security problems.

#8 Updated by eric sorenson about 2 years ago

  • Status changed from Accepted to Closed
  • Assignee set to eric sorenson

Closing as wont-fix — the ruby dsl is deprecated and will not receive fixes.

Also available in: Atom PDF