From 2c5dc210635be099429cff18c7204e39eeb9014f Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 27 Feb 2019 03:45:13 +0000 Subject: [PATCH] docs(tofs): add more sub-headings to ease document navigation --- TOFS_pattern.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TOFS_pattern.md b/TOFS_pattern.md index 09448b40..42ecabcb 100644 --- a/TOFS_pattern.md +++ b/TOFS_pattern.md @@ -52,6 +52,8 @@ I understand a formula as a **complete, independent set of SaltStack state and c The customization of a formula should be done mainly by providing pillar data used later to render either the state or the configuration template files. +### Example: NTP before applying TOFS + Let's work with the NTP example. A basic formula that follows the [design guidelines](http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html) has the following files and directories tree: ``` @@ -286,6 +288,8 @@ Configure NTP: - pkg: Install NTP package ``` +### Using the `files_switch` macro + We can simplify the `conf.sls` with the new `files_switch` macro to use in the `source` parameter for the `file.managed` state. ```