Using SDB modules

There are a number of places where SDB modules can be used. Because SDB retrieval is built into the config.get function in the config execution module, the following locations can be used to set a value for a Minion:

  • Minion configuration file
  • Grains
  • Pillars
  • Master configuration file

SDB is also supported by Salt Cloud, so you can also set SDB URIs in:

  • The main cloud configuration file
  • Cloud profiles
  • Cloud providers
  • Cloud maps

Regardless of where you set an SDB URI, the format is the same:

<setting name>: sdb://<profile name>/<key>

This can be particularly useful with cloud providers, all of which require credentials, but many of which also use more complex configuration blocks that should be checked into revision control.

Take, for example, ...

Get Extending SaltStack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.