Puppet 4: Working with Files and Templates

In this course, you will learn how to refactor your Puppet code to make use of templates, reduce the required files for a module, as well as how you can deliver parts of files, files, or complete sub-directories with Puppet.
Course info
Rating
Level
Intermediate
Updated
September 2, 2016
Duration
3h 7m
Table of contents
Description
Course info
Rating
Level
Intermediate
Updated
September 2, 2016
Duration
3h 7m
Description

There are many scenarios where adding functionality to your Puppet modules can make your work easier. In this course, Puppet 4: Working with Files and Templates, you'll learn how to make use of templates in your Puppet code and how you can deliver files with Puppet. First, you'll see how easily you can reduce the number of files a module requires by making use of variable data and templates. The original template language was Ruby, but now with Puppet 4 you can support both Ruby and Puppet templates. Next, you'll look at ways to deliver files and parts of files. Finally, you'll learn how you can deliver a complete folder structure if required, purging any unmanaged content using file\-line while concat delivers single lines or fragments of files allowing for autonomous edits to the managed files. By the end of the course, you will be able to create Puppet modules delivering configurations using templates, as well as allowing autonomous edits using file fragments.

About the author
About the author

Andrew is a committed evangelist of the Linux Operating System and the concept of community and freedom that it provides. He has worked as a technical trainer since 1995 and has taught throughout the world, including Australia, the US, Germany and Eastern Europe. Andrew started teaching Linux in 2004 when Novell acquired SUSE and has been a long time supporter of Novell and provides SYSOP support the the Certifed Novell Instructor community on Linux. Andrew founded theurbanpenguin and has been submitting video training material to his YouTube channel since 2009 and currently has over 8,500 subscribers and 1.6 Million views. Andrew has had two publications with Packt: Citrix Access Gateway VPX Essentials (2012) and Citrix XenApp (2013).

More from the author
OpenStack: Installing the Lab Environment
Intermediate
4h 25m
7 Mar 2017
Linux: Managing Web Services (LPIC-2)
Intermediate
5h 11m
16 Feb 2017
More courses by Andrew Mallett
Transcript
Transcript

Hi everyone and welcome, my name is Andrew Mallett, otherwise known as the theurbanpenguin. I hope you are ready for the 3rd Puppet course in the series: Puppet 4 - Working with Files and Templates You know that I work in the UK with my own Linux training and consultancy, and Puppet has always been my configuration tool of choice .I started using puppet 7 0r 8 years ago to complete classroom setups and still use it today. In this course you will learn how to refactor your Puupet code to make use of templates reducing the required files for a module as well as how we can deliver parts of files, files or complete sub-directories with Puppet. We continue with the NTP theme from the previous courses and look at 1. Purging Resources 2. Using ERB and EPP Templates 3. Using concat to deliver file fragments By the end of the course you will be able to create exquisite Puppet modules delivering configurations using templates as well as allowing autonomous edits using file fragments You will need some basic knowledge of Linux and understanding of Puppet gained from the Puppet 4: Language Essentials.