Puppet 4: Hiera, the Single Source of Truth

Hiera allows your code to be abstracted from the implementation. More simply, you can remove much of the logic from your code and let it be replaced with Hiera lookups. This course will teach you how to do just that.
Course info
Rating
(11)
Level
Intermediate
Updated
Oct 13, 2016
Duration
2h 39m
Table of contents
Description
Course info
Rating
(11)
Level
Intermediate
Updated
Oct 13, 2016
Duration
2h 39m
Description

Throughout this series of Puppet 4 courses, the complexity of the NTP module has been building up. Now, you can start to simplify the module by removing components and adding Hiera. In this course, Puppet 4: Hiera, the Single Source of Truth, you'll be refactoring the NTP module to make use of Hiera in replacement of some of the Puppet logic. First, you'll learn how to write YAML files. Next, you'll learn how to configure and test Hiera. Finally, you'll learn the fault-finding Puppet applications. By the end of this course, you'll be able to implement modules using Hiera efficiently and effectively.

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
Linux: System Security (LPIC-2)
Intermediate
3h 6m
Mar 7, 2018
Linux: Email Services (LPIC-2)
Intermediate
2h 21m
Feb 20, 2018
Linux: Network Client Management (LPIC-2)
Intermediate
3h 53m
Jan 11, 2018
More courses by Andrew Mallett
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, and welcome. My name is Andrew Mallett and you might know me as the @urbanpenguin. I certainly hope you're going to be ready for the fourth Puppet course, yes, the fourth Puppet course in this series, Puppet 4: Hiera, the Single Source of Truth. Now we dramatically call it the Single Source of Truth, because Hiera is the one place Puppet can rely on for its configuration data. Now you might know that I work within the U. K. in my own Linux training and consultancy company. Puppet has always been my configuration tool of choice, and I started using it maybe seven or eight years ago to help complete classroom setups, and I'm still using it today. In this course, we're going to be refactoring that NTP module that we've been working on, and we're going to make sure that it can utilize Hiera in replacement of some of the Puppet logic that we've previously added. This is going to make our code simpler and easier to maintain in the long run, as configuration values are retrieved from Hiera. During the course, we're going to dive straight into writing YAML files, looking at how we can configure and test Hiera, as well as fault finding our Puppet applications. By the end of this course, you're going to be able to create Puppet modules, delivering configurations that are customized using Hiera. The modules are going to be easy to maintain with simplicity at the heart of their design. Now of course, you're going to need some basic knowledge of Linux and an understanding of Puppet. This can be gained from the Puppet 4: Language Essentials course.

Refactoring the NTP Module for Hiera
Hello and welcome to this Pluralsight presentation. My name is Andrew Mallett and I'm here as your instructor to help guide you through the final module of this course where we take a look at refactoring the NTP module for Hiera. Now as we go through and take a look at the objectives for this course, we're not going to find too many objectives here. Quite simply we are going to be working with our existing NTP module, and we're going to be looking at how we can simplify the code, making use of Hiera. Now this is really necessary, because as we've been going through the different elements of this Puppet series, we've been building in an element of complexity. Well now, we're going to be removing some of that complexity. As we demonstrate different elements of the Puppet language, we've been using this NTP module to be able to show those elements. Well the reality is, we've probably made it a little bit more complex than it really needs, so now we're going to be looking at tidying it all up and really simplifying it by making use of Hiera. So the first thing that we're going to see is working at the command line of my CentOS host, we're going to start adding in the required keys to the correct data sources within Hiera.