Skip to content

Commit

Permalink
docs(tofs): add more sub-headings to ease document navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 27, 2019
1 parent 788f732 commit 2c5dc21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TOFS_pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down Expand Up @@ -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.

```
Expand Down

0 comments on commit 2c5dc21

Please sign in to comment.