From 24e7991f6ba6136e16420ee7cd3f429f21ea7af5 Mon Sep 17 00:00:00 2001 From: "mike.reider" Date: Fri, 17 Feb 2023 14:08:38 -0500 Subject: [PATCH] sdb doc example subkeys --- doc/topics/sdb/index.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/topics/sdb/index.rst b/doc/topics/sdb/index.rst index 5d930a2e9e8..8adefe4972a 100644 --- a/doc/topics/sdb/index.rst +++ b/doc/topics/sdb/index.rst @@ -79,6 +79,20 @@ from the ``kevinopenstack`` profile above, you would use: salt-call sdb.get sdb://kevinopenstack/password +To get SDB sub-keys, ie + +.. code-block:: yaml + + users: + user1: + id: 12345 + +use a colon to separate sub key values + +.. code-block:: bash + + salt-call sdb.get sdb://users:user1:id + .. warning:: The ``vault`` driver previously only supported splitting the path and key with a question mark. This has since been deprecated in favor of using the standard