Skip to content

Commit 2c5dc21

Browse files
committed
docs(tofs): add more sub-headings to ease document navigation
1 parent 788f732 commit 2c5dc21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TOFS_pattern.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ I understand a formula as a **complete, independent set of SaltStack state and c
5252

5353
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.
5454

55+
### Example: NTP before applying TOFS
56+
5557
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:
5658

5759
```
@@ -286,6 +288,8 @@ Configure NTP:
286288
- pkg: Install NTP package
287289
```
288290

291+
### Using the `files_switch` macro
292+
289293
We can simplify the `conf.sls` with the new `files_switch` macro to use in the `source` parameter for the `file.managed` state.
290294

291295
```

0 commit comments

Comments
 (0)