On Jul 23, 2010, at 3:37 PM, John T. Guthrie wrote:

> Do I need to create a "wrapper" class for the define instantiation like this:
> 
> class def_inst {
>    definetest::optfile {
>         "file1":
>             fname => "foo";
>         "file2":
>            fname => "bar";
>    }
> }
> 
> And then I can use puppetClass: def_inst in LDAP?

Basically, yes. I’ve only used define once to manage entries in `sudoers`, so 
I’m no authority, but I just created the define outside of any class and then 
called that define as needed within classes.

To put it another way, the defines should be called from inside classes along 
with file, package, server and other resources. Creating a class exclusively to 
call a single define seems off to me, but of course I don’t know the details of 
your situation.

-- 
Rob McBroom
<http://www.skurfer.com/>

Don't try to tell me something is important to you if the whole of your 
“support” entails getting Congress to force *others* to spend time and money on 
it.

-- 
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