Yes i intended to pass a variable to a class through node definition.
Could you please show me an example of the syntax please ?

-------- Message initial --------
De: Michael DeHaan <[email protected]>
Reply-to: [email protected]
À: [email protected]
Sujet: Re: [Puppet Users] Templates : about puppet syntax
Date: Mon, 22 Mar 2010 16:40:36 -0400

Modules can't currently take parameters (I think you intend to really
pass parameters to a class, not a module, right?); they can however make
use of variables, whether set by an external nodes classifier or in
site.pp.

Parameterized classes, however, are coming soon and would do what you
want.   For now I'd just use a variable.

--Michael



On Mon, Mar 22, 2010 at 3:33 PM, Smain Kahlouch <[email protected]>
wrote:
        Hi,
        
        I just have a question about puppet syntax.
        I would like to give a parameter to my ldap module.
        
        In the node definition i would like to specify the domain.
        Example :
        ldapnode {
        include ldap::master::domain("domain.tld")
        }
        
        And in the manifest :
        define ldap::master::domain() {...}
        
        but i don't know how to do it.
        Could you please help me ?
        
        Regards,
        Grifith
        
        --
        You received this message because you are subscribed to the
        Google Groups "Puppet Users" group.
        To post to this group, send email to
        [email protected].
        To unsubscribe from this group, send email to puppet-users
        [email protected].
        For more options, visit this group at
        http://groups.google.com/group/puppet-users?hl=en.
        



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

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

Reply via email to