Understanding SDB

SDB, or Simple Database, was created to serve certain needs that the grains and pillar systems cannot provide. Specifically, grains and pillars are constructs that exist entirely for the benefit of minions, and as such are not available to master-side operations.

This makes SDB more useful for lookups that happen inside the master configuration and for Salt Cloud configuration. SDB data is still available via minion configurations, and there are both execution and pillar modules for SDB, but in those cases, you may find it more appropriate to store your data inside a pillar.

Before we get into all that, let's talk about the use cases that drove the initial development of SDB.

Securely storing passwords

SDB was originally intended ...

Get Mastering SaltStack - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.