Hi,

Ignore me!  This works just fine...

if ! defined(Concat['/myfile']) {

I did try that earlier, so I guess I got confused by some other error that 
needed solving at the same time.

Regards,
David

On Friday, 15 May 2015 13:48:22 UTC+1, David Evans wrote:
>
> Hi,
>
> Does a file created with puppetlabs\concat get added to File[]?  If not 
> how can I check if such a file is already defined (so as not to get a 
> duplicate definition error).  I'm using this, but it doesn't seem to work:
>
> if ! defined(File['/myfile']) {
>   concat { '/myfile':
>     ensure=> present,
>     etc...
>   }
> }
>
> Thanks in advance for any assistance!
>
> Regards,
> David
>

-- 
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/1491f8b4-e390-4432-9b2d-944c91c157a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to