Configuration Generator with Python and Jinja2

This chapter introduces you to the YAML format for representing data and generating a configuration from the golden templates created by the Jinja2 language. We will use these two concepts in both Ansible and Python to create a data model store for our configuration.

We will cover the following topics in this chapter:

  • What is YAML?
  • Building golden configuration templates with Jinja2

Get Hands-On Enterprise Automation with Python. 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.