On Thursday 18 Mar 2010 19:04:17 Peter Meier wrote:
>   > and this:
> >
> >     if ! defined(File["/data/syslog/${remote_host}/archive"]) {
> >         file {
> >             "/data/syslog/${remote_host}/archive":
> >                 ensure => directory;
> >         }
> >     }
> 
> this should work.
> 

Not in 0.24.x which IIRC is the one Douglas is using.  Not 100% sure but this 
should:

if defined(File[...]) != true {
   ...
}

or if not then:

if defined(File[...]) {
    notice('using already defined file')
} else {
    file { ... }
}


-- 
Michael Gliwinski
Henderson Group Information Services
9-11 Hightown Avenue, Newtownabby, BT36 4RT
Phone: 028 9034 3319

**********************************************************************************************
The information in this email is confidential and may be legally privileged.  
It is intended solely for the addressee and access to the email by anyone else 
is unauthorised.
If you are not the intended recipient, any disclosure, copying, distribution or 
any action taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.
When addressed to our clients, any opinions or advice contained in this e-mail 
are subject to the terms and conditions expressed  in the governing client 
engagement leter or contract.
If you have received this email in error please notify 
supp...@henderson-group.com

John Henderson (Holdings) Ltd
Registered office: 9 Hightown Avenue, Mallusk, County Antrim, Northern Ireland, 
BT36 4RT.
Registered in Northern Ireland
Registration Number NI010588
Vat No.: 814 6399 12
*********************************************************************************

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to