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