On 11/07/2014 07:40 PM, Bill MacAllister wrote:
>>
>> define something::specific($group) {
>>     file { "/things/$group/$name": }
>>     if !defined( File["/things/$group"] ) {
>>         file { "/things/$group": ensure => directory }
>>     }
>> }
> 
> Yes, I like that.  Let me know when I can use it.  ;-)

Well, you *can* do this right now. As long as this is the only query for
this resource, I would go so far as to claim that this is one of the few
clean use cases for defined(). Just make sure to steer clear in any
other situation.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/545D15E7.8070306%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to