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
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']
}
This is really a style/documentation thing... I am not fussed how we solve it...
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.