I've already broken it down as much as I can. The bottom class is calling the same definition 10 times to set up 10 instances of jboss on a single system, and another definition is running 10 times to setup 10 instances of tomcat on the same server (don't blame me... it's the way our software was built). So.... I can't really subclass that. It would be nice for clarity to break each definition into a separate file however. Poo.
Doug. On Fri, Mar 19, 2010 at 4:32 PM, Patrick <kc7...@gmail.com> wrote: > On Mar 19, 2010, at 4:19 PM, Douglas Garstang wrote: > >> My node manifests are getting rather large. >> >> Is there a way I can inline include a file into a node manifest? I'd >> like to break the node manifest into smaller parts. Note, this is NOT >> a module include I am looking for. > > I don't know how to do that, but this might solve your problem. > > I usually put all or almost all the modules to be included into base classes. > Some of these classes include others, and then the nodes include them. This > keeps my node definitions small. Here's an example: > > > class base-loadset { > include aptcacher-client #Get apt updates from the apt cache > include auto-updates #automatically get updates > include base-accounts > include base-packages > include local-apt > include puppet-conf > } > > class client-base-loadset { > include base-loadset > > include ntp-client > include student-packages > include oaks > } > > class server-base-loadset { > include base-loadset > > include ntp-server > include samba-server > } > > > > node > 'basicserver1.domain', > 'basicserver2.domain', > { > include server-base-loadset > } > > node > 'webserver1.domain', > { > include server-base-loadset > include apache-server > } > > > node > 'client1.domain', > 'client2.domain', > { > include client-base-loadset > } > > > -- > 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. > > -- Regards, Douglas Garstang http://www.linkedin.com/in/garstang Email: doug.garst...@gmail.com Cell: +1-805-340-5627 -- 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.