[Puppet - Bug #3857] cannot make reference to defined resource types with :: in type

36 views
Skip to first unread message

red...@puppetlabs.com

unread,
Jun 4, 2010, 12:01:42 PM6/4/10
to ja...@lovedthanlost.net, peter...@immerda.ch, r...@devco.net, puppe...@googlegroups.com
Issue #3857 has been updated by Dan Bode.
  • Priority changed from Normal to High

Bug #3857: cannot make reference to defined resource types with :: in type

  • Author: Dan Bode
  • Status: Unreviewed
  • Priority: High
  • Assigned to:
  • Category:
  • Target version:
  • Affected version: 0.25.5rc3
  • Keywords:
  • Branch:

I did a search and didn't find a duplicate, but it's hard to believe an issue is not already open for this.

when I create a defined resource type that has :: in the name, I cant make a reference to it.

define blah::blah() {
  file { $name:
    ensure => file,
  }
}

blah::blah { '/tmp/two':}

file { '/tmp/one':
  ensure => file,
  require => Blah::blah['/tmp/two']
}

creating defined resource types with :: is a best practice since its required for auto-loading in modules.


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

red...@puppetlabs.com

unread,
Jun 4, 2010, 1:05:53 PM6/4/10
to ja...@lovedthanlost.net, peter...@immerda.ch, r...@devco.net, puppe...@googlegroups.com
Issue #3857 has been updated by Dan Bode.
  • Priority changed from High to Normal

there is way to get around this, you need to capitalize everything that proceeds a colon:

file { '/tmp/one':
ensure => file,

require => Blah::Blah['/tmp/two']
}

  • Author: Dan Bode
  • Status: Unreviewed
  • Priority: Normal
  • Assigned to:
  • Category:
  • Target version:
  • Affected version: 0.25.5rc3
  • Keywords:
  • Branch:

red...@puppetlabs.com

unread,
Jun 7, 2010, 2:15:21 PM6/7/10
to peter...@immerda.ch, r...@devco.net, d...@puppetlabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #3857 has been updated by James Turnbull.
  • Category set to documentation
  • Status changed from Unreviewed to Needs design decision
  • Assigned to set to Markus Roberts
  • Target version set to unplanned
  • Affected version changed from 0.25.5rc3 to 0.25.5

This is really a style/documentation thing... I am not fussed how we solve it...

  • Author: Dan Bode
  • Status: Needs design decision
  • Priority: Normal
  • Assigned to: Markus Roberts
  • Category: documentation
  • Target version: unplanned
  • Affected version: 0.25.5
  • Keywords:
  • Branch:

tic...@puppetlabs.com

unread,
Jun 13, 2011, 7:02:20 PM6/13/11
to ja...@lovedthanlost.net, n...@puppetlabs.com, d...@puppetlabs.com, Mar...@reality.com, puppe...@googlegroups.com
Issue #3857 has been updated by Nick Fagerlund.
  • Status changed from Accepted to Closed

Oh! I didn’t know there was a bug for this, but I just fixed it ten minutes ago, because it came up in the IRC channel on Friday. Closing.

  • Author: Dan Bode
  • Status: Closed
  • Priority: Normal
  • Assignee: Markus Roberts
  • Category:
  • Target version:
  • Affected Puppet version: 0.25.5
  • Keywords:
  • Branch:
  • Affected URL:
Reply all
Reply to author
Forward
0 new messages