Skip to content

Commit

Permalink
fix(doc): roles names must match formula tplroot name
Browse files Browse the repository at this point in the history
  • Loading branch information
baby-gnu committed Jan 6, 2021
1 parent 303aa05 commit ec790e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/map.jinja.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ We create the directory for roles:
We will define 2 roles:

- ``template/server``
- ``template/client``
- ``TEMPLATE/server``
- ``TEMPLATE/client``

We create a configuration for the role ``template/server`` in ``/srv/salt/TEMPLATE/parameters/roles/template/server.yaml``:
We create a configuration for the role ``TEMPLATE/server`` in ``/srv/salt/TEMPLATE/parameters/roles/TEMPLATE/server.yaml``:

.. code-block:: yaml
Expand All @@ -128,7 +128,7 @@ We create a configuration for the role ``template/server`` in ``/srv/salt/TEMPLA
config: /etc/template-formula-server.conf
...
We create another configuration for the role ``template/client`` in ``/srv/salt/TEMPLATE/parameters/roles/template/client.yaml``:
We create another configuration for the role ``TEMPLATE/client`` in ``/srv/salt/TEMPLATE/parameters/roles/TEMPLATE/client.yaml``:

.. code-block:: yaml
Expand Down Expand Up @@ -186,13 +186,13 @@ For the servers:

.. code-block:: console
salt 'server-*' grains.append roles template/server
salt 'server-*' grains.append roles TEMPLATE/server
For the clients:

.. code-block:: console
salt 'client-*' grains.append roles template/client
salt 'client-*' grains.append roles TEMPLATE/client
.. note::

Expand Down

0 comments on commit ec790e4

Please sign in to comment.