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.


I have released my new course on Udemy, Kubernetes By Example. Sign up now to get free lifetime access!

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.