Configure Windows and Linux with Single Salt Module

If OS is Windows, the path is ‘C:\tero’. If OS is Linux, the path is ‘/tmp/tero’. You can use conditionals to create Salt modules that work in multiple operating systems.

Posted in Uncategorized | Tagged , , , , , , , , , , | Comments Off on Configure Windows and Linux with Single Salt Module

Make a Million of Those – Jinja Templating Salt States

Do you need a 50 users and Apache name based virtual hosts for each? If you use salt, you can use loops and variables with Jinja templates on your states. This short example configuration creates three text files with different … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | Comments Off on Make a Million of Those – Jinja Templating Salt States

Flask Templates

Making nice web pages is fastest with templates. Flask web development framework uses Jinja2 templates, my favorite template engine. Base template contains the common parts: HTML boilerplate, navigation, headers and footers. The actual pages extend the base template. This way, … Continue reading

Posted in Uncategorized | Tagged , , | Comments Off on Flask Templates