mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Update index.rst
update syntax
This commit is contained in:
parent
24e7991f6b
commit
b874028705
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue