Puppet – Organising your puppet code into separate files

So far we have looked at how to organise your code by compartmentalizing your resources into classes.

However, your site.pp can still get really big as your write more and more classes. That’s why the next logical step is to store your classes in separate manifests, and then “dot source” them. In Puppet there are three ways to do this:

We’ll now look at each approach in turn.