Book Image

Puppet Cookbook - Third Edition

Book Image

Puppet Cookbook - Third Edition

Overview of this book

Table of Contents (17 chapters)
Puppet Cookbook Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Working with Files and Packages

 

"A writer has the duty to be good, not lousy; true, not false; lively, not dull; accurate, not full of error."

 
 --E.B. White

In this chapter, we will cover the following recipes:

  • Making quick edits to config files

  • Editing INI style files with puppetlabs-inifile

  • Using Augeas to reliably edit config files

  • Building config files using snippets

  • Using ERB templates

  • Using array iteration in templates

  • Using EPP templates

  • Using GnuPG to encrypt secrets

  • Installing packages from a third-party repository

  • Comparing package versions