1. Juniper Networks TechLibrary, Junos PyEZ Developer Guide, "Using Configuration Templates to Configure Junos Devices": This official guide explicitly details the process. It states, "You can use Jinja2 templates in conjunction with Junos PyEZ to generate a configuration and load it onto a device... You can define the variables in a YAML or JSON file and load the file in the application." This section provides a complete example using a Jinja2 template and a YAML variables file to configure an interface.
2. Day One: Automating Junos with PyEZ, Second Edition, Chapter 4: "Provisioning a New Device": This book demonstrates a practical use case. Page 58 shows creating a YAML file (new-devices.yml) to store device-specific variables (hostname, IP address). Page 59 presents a Jinja2 template (config-template.j2) that uses these variables. The accompanying Python script combines them to generate and load the unique configuration for each device.