Reader small image

You're reading from  Puppet 8 for DevOps Engineers

Product typeBook
Published inJun 2023
PublisherPackt
ISBN-139781803231709
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
David Sandilands
David Sandilands
author image
David Sandilands

David Sandilands is a principal solutions architect at Puppet, with a focus on the product management of Puppet's development ecosystem and integrations. This includes management of the Forge, supported modules, the Puppet Developer Kit, and integrations such as ServiceNow and Splunk. Before this, David worked within Puppet's solutions architect team, helping Puppet's largest customers deliver infrastructure automation at scale, and supported these customers in their DevOps working practices. He spent eight years at NatWest as a cloud infrastructure engineer delivering their IaaS platform. Based in Falkirk, Scotland, David has a Bachelor of Engineering in computer science from the University of Edinburgh.
Read more about David Sandilands

Right arrow

Summary

In this chapter, the use of templates in Puppet was examined. It showed Puppet’s two types of templates – EPP and ERB – which worked in similar ways, using a mix of plain text and tags surrounding code to allow for Puppet/Ruby to apply logic and variables and create more complex content when evaluated. It was warned that the level of complexity should be carefully considered before using templates instead of functions such as file_line, and controlling resources individually. Additionally, because of the lack of functions for a single line or setting control in files, templates had been overused, and heritage code should be examined carefully to ensure that a template was the correct level of complexity.

EPP was shown to be the recommended way of producing templates since it was in the Puppet language and easier to learn for a Puppet developer. It was also more secure since it could limit its scope with parameters, and similarly, more performant since...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Puppet 8 for DevOps Engineers
Published in: Jun 2023Publisher: PacktISBN-13: 9781803231709

Author (1)

author image
David Sandilands

David Sandilands is a principal solutions architect at Puppet, with a focus on the product management of Puppet's development ecosystem and integrations. This includes management of the Forge, supported modules, the Puppet Developer Kit, and integrations such as ServiceNow and Splunk. Before this, David worked within Puppet's solutions architect team, helping Puppet's largest customers deliver infrastructure automation at scale, and supported these customers in their DevOps working practices. He spent eight years at NatWest as a cloud infrastructure engineer delivering their IaaS platform. Based in Falkirk, Scotland, David has a Bachelor of Engineering in computer science from the University of Edinburgh.
Read more about David Sandilands