Learning SaltStack - Second Edition by Colton Myers
Author:Colton Myers [Myers, Colton]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2016-06-30T04:00:00+00:00
Chapter 5. Expanding Our States with Jinja2 and Pillar
In the previous chapter, you learned about the state system and wrote your first state. In this chapter, we will do the following:
Learn the basics of the Jinja2 templating language
Use Jinja2 to make our states platform agnostic
Learn how to define minion-specific secure data in the pillar system
Use Jinja2 to use pillar data in our states
Adding a new minion
The initial examples in this chapter will be all about cross-platform states. To make the examples clearer, we will add a new minion running CentOS 6.5. See Chapter 1, Diving In – Our First Salt Commands, if you need a refresher on how to install salt-minion on a new server. Here's a quick two liner to install a minion using Salt-Bootstrap:
# curl -L https://bootstrap.saltstack.com -o install_salt.sh # sudo sh install_salt.sh
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7423)
Supercharging Productivity with Trello by Brittany Joiner(6683)
Mastering Tableau 2023 - Fourth Edition by Marleen Meier(6449)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6425)
Inkscape by Example by István Szép(6300)
Visualize Complex Processes with Microsoft Visio by David J Parker & Šenaj Lelić(5995)
Build Stunning Real-time VFX with Unreal Engine 5 by Hrishikesh Andurlekar(4998)
Design Made Easy with Inkscape by Christopher Rogers(4647)
Customizing Microsoft Teams by Gopi Kondameda(4186)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3940)
Business Intelligence Career Master Plan by Eduardo Chavez & Danny Moncada(3786)
Extending Microsoft Power Apps with Power Apps Component Framework by Danish Naglekar(3774)
Salesforce Platform Enterprise Architecture - Fourth Edition by Andrew Fawcett(3652)
Pandas Cookbook by Theodore Petrou(3629)
The Tableau Workshop by Sumit Gupta Sylvester Pinto Shweta Sankhe-Savale JC Gillet and Kenneth Michael Cherven(3427)
TCP IP by Todd Lammle(2995)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2924)
Exploring Microsoft Excel's Hidden Treasures by David Ringstrom(2897)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2885)
