On Dec 22, 1:16 pm, "sanjiv.singh" <sanjiv.si...@impetus.co.in> wrote: > hi all, > i started using puppet month before. > i am playing with puppet , configured with LDAP. > > according to my requirement , i need to configure two nodes > node 1. where tomcat an releted services to be deployed through > puppet . > node 2. where java processs that will point to tomcat services. > > for i had created two puppet classes in two different module > tomcat.pp and process.pp. > > and two node created in LDAP pointing to these puppet classes. > > able to fullfill above scenario with puppet . > > as U can visualise node 2 should be configured after node1.
No, I don't visualize that at all. Do not confuse operational dependencies between your nodes (which clearly you have) with configuration dependencies between them (of which i see no evidence). Puppet is focused on the configuration side. > what i need is , > both the configuration to be done one node . > mean both tomcat and java services to be deployed on same machine > rather than two diff machine. > > i want to give customised option .... > option 1) deploy on same machine. > option 2) deploy on two diff machine. > > Ques : how can i implement this with puppet reusing existing puppet > (module & class ) ? This should be very easy, provided your classes do not conflict. A node can include any number of classes, so all you have to do is change this: ==== node node1 { include <tomcat_class_name> } node node2 { include <process_class_name> } ==== to this: ==== node node3 { include <tomcat_class_name> include <process_class_name> } ==== If your classes do conflict (for example, they define the same resource) then you will have to refactor them to make them compatible. Depending on the nature of the conflict(s), that might be either very simple or rather tricky. John -- 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.