Update index.rst

update syntax
This commit is contained in:
mrx 2023-06-22 09:50:17 -04:00 committed by Daniel Wozniak
parent 24e7991f6b
commit b874028705

View file

@ -79,7 +79,7 @@ from the ``kevinopenstack`` profile above, you would use:
salt-call sdb.get sdb://kevinopenstack/password
To get SDB sub-keys, ie
For SDB sub-keys, ie users['user1']['id']
.. code-block:: yaml
@ -87,11 +87,19 @@ To get SDB sub-keys, ie
user1:
id: 12345
use a colon to separate sub key values
To get SDB sub-keys from the CLI, use a colon to separate sub key values. For example:
.. code-block:: bash
salt-call sdb.get sdb://users:user1:id
salt-call sdb.get sdb://users:user1:id
To get SDB sub-keys in a state file, use this syntax:
.. code-block:: yaml
users:
user1:
id: sdb.get sdb://users:user1:id
.. warning::
The ``vault`` driver previously only supported splitting the path and key with