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 , , , , , , , , , , | Leave a comment

Simple Secrets in Salt Pillars

This is a simple example for storing secrets in Salt Pillars. If you have a hundred slaves machines, you don’t need to trust them all. Following this tutorial requires working salt master-slave installation and salt states.

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

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 , , , , , , , , , , , , , , | Leave a comment

Javascript Basics – variable function loop if-then-else print

Learn the very basics of Javascript: variables, functions, loops, if-then-else and printing. Run the short example in your browser, then view the source. Knowing the basics will make it more fun to jQuery/PhoneGap/Cordova/ProcessingJs.

Posted in Uncategorized | Tagged , , , , , , , , , , , , , | Leave a comment