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:
Jay Pipes 2012-10-31 16:47:58 -04:00
parent 0332c76147
commit ef5e11168c

View File

@ -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