Hiding complexity with parameters, defaults, and abstraction

You can see that, in the Apache profile, we have hidden the complexity of the vhost-defined type quite considerably, so that you just need to provide the name of the vhost as a string. Additionally, you can overwrite the value of the root internet directory. I believe it's the same location on all Linux operating systems. This reduction in the size of the interface really reduces complexity, and provides a simple, neat abstraction, which is fine if you don't need multiple Apache vhosts.

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.