Skip to content

Commit

Permalink
Merge pull request #34601 from lorengordon/clarify-doc
Browse files Browse the repository at this point in the history
Clarifies the proper way to reference states
  • Loading branch information
Mike Place committed Jul 14, 2016
2 parents bc63f25 + bfe0dd0 commit 3b6f108
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/topics/tutorials/states_pt1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ and all changes made.
1. The ``.sls`` is discarded (i.e. ``webserver.sls`` becomes
``webserver``).
2. Subdirectories can be used for better organization.
a. Each subdirectory can be represented with a dot (following the python
import model) or a slash. ``webserver/dev.sls`` can also be referred to
as ``webserver.dev``
b. Because slashes can be represented as dots, SLS files can not contain
dots in the name besides the dot for the SLS suffix. The SLS file
webserver_1.0.sls can not be matched, and webserver_1.0 would match
the directory/file webserver_1/0.sls
a. Each subdirectory is represented with a dot (following the Python
import model) in Salt states and on the command line . ``webserver/dev.sls``
on the filesystem is referred to as ``webserver.dev`` in Salt
b. Because slashes are represented as dots, SLS files can not contain
dots in the name (other than the dot for the SLS suffix). The SLS
file ``webserver_1.0.sls`` can not be matched, and ``webserver_1.0``
would match the directory/file ``webserver_1/0.sls``

3. A file called ``init.sls`` in a subdirectory is referred to by the path
of the directory. So, ``webserver/init.sls`` is referred to as
Expand Down

0 comments on commit 3b6f108

Please sign in to comment.