Hi,

So I assume you have two class definitions like this, either in site.pp or in modules:

class class1 {

   ...

}

class class2 {

   ...

}


You can then use a node definition in site.pp and "include" the necessary classes like this:

node 'nodesSD' {

   include class1

}

node 'nodesCTO' {

   include class2

}


See this page for more info:

http://docs.puppetlabs.com/guides/language_guide.html#nodes

Hope that helps,

-Luke

On 03/02/12 17:32, mukulm wrote:

Hi,

How can I create two nodes with differnert hostnames i.e, nodeSD.pp&
nodesCTO.pp&  import that nodes
in site.pp with different classes (class1&  class2) such as,
classes1 with nodesSD.pp
classes2 with nodesCTO.pp

Both the classes has different configuration&  need to be run with
different nodes

Can anyone please assist me regarding the above senario.

Thanks



--
Luke Bigum

Information Systems
[email protected] | http://www.lmax.com
LMAX, Yellow Building, 1A Nicholas Road, London W11 4AN


The information in this e-mail and any attachment is confidential and is 
intended only for the named recipient(s). The e-mail may not be disclosed or 
used by any person other than the addressee, nor may it be copied in any way. 
If you are not a named recipient please notify the sender immediately and 
delete any copies of this message. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden. Any view or 
opinions presented are solely those of the author and do not necessarily 
represent those of the company.

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