mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Adds a note to starting_states tutorial explaining file.managed shortcut
address issue #2412 Just adds a note section to the starting_states tutorial doc page that explains the file.managed shortcut to make it a bit easier for beginner Salt users to understand...
This commit is contained in:
parent
0332c76147
commit
ef5e11168c
@ -209,6 +209,16 @@ toolkit, consider this SSH example:
|
|||||||
- require:
|
- require:
|
||||||
- pkg: openssh-server
|
- pkg: openssh-server
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
You may notice that we use two similar ways of denoting that a file
|
||||||
|
is managed by Salt. In the `/etc/ssh/sshd_config` state section above,
|
||||||
|
we use the `file.managed` state declaration whereas with the
|
||||||
|
`/etc/ssh/banner` state section, we use the `file` state declaration
|
||||||
|
and add a `managed` attribute to that state declaration. Both ways
|
||||||
|
produce an identical result; the first way -- using `file.managed` --
|
||||||
|
is merely a shortcut.
|
||||||
|
|
||||||
Now our State Tree looks like this: ::
|
Now our State Tree looks like this: ::
|
||||||
|
|
||||||
apache/init.sls
|
apache/init.sls
|
||||||
|
Loading…
Reference in New Issue
Block a user