MCPcopy Index your code
hub / github.com/saltstack/salt / data

Function data

salt/modules/pillar.py:308–360  ·  view source on GitHub ↗

Calls the master for a fresh pillar, generates the pillar data on the fly (same as :py:func:`items`) pillar If specified, allows for a dictionary of pillar data to be made available to pillar and ext_pillar rendering. these pillar variables will also override an

(
    *args, pillar=None, pillar_enc=None, pillarenv=None, saltenv=None, unmask=None
)

Source from the content-addressed store, hash-verified

306
307# Allow pillar.data to also be used to return pillar data
308def data(
309 *args, pillar=None, pillar_enc=None, pillarenv=None, saltenv=None, unmask=None
310):
311 """
312 Calls the master for a fresh pillar, generates the pillar data on the
313 fly (same as :py:func:`items`)
314
315 pillar
316 If specified, allows for a dictionary of pillar data to be made
317 available to pillar and ext_pillar rendering. these pillar variables
318 will also override any variables of the same name in pillar or
319 ext_pillar.
320
321 pillar_enc
322 If specified, the data passed in the ``pillar`` argument will be passed
323 through this renderer to decrypt it.
324
325 .. note::
326 This will decrypt on the minion side, so the specified renderer
327 must be set up on the minion for this to work. Alternatively,
328 pillar data can be decrypted master-side. For more information, see
329 the :ref:`Pillar Encryption <pillar-encryption>` documentation.
330 Pillar data that is decrypted master-side, is not decrypted until
331 the end of pillar compilation though, so minion-side decryption
332 will be necessary if the encrypted pillar data must be made
333 available in an decrypted state pillar/ext_pillar rendering.
334
335 pillarenv
336 Pass a specific pillar environment from which to compile pillar data.
337 If not specified, then the minion&#x27;s :conf_minion:`pillarenv` option is
338 not used, and if that also is not specified then all configured pillar
339 environments will be merged into a single pillar dictionary and
340 returned.
341
342 saltenv
343 Included only for compatibility with
344 :conf_minion:`pillarenv_from_saltenv`, and is otherwise ignored.
345
346 CLI Examples:
347
348 .. code-block:: bash
349
350 salt '*' pillar.data
351 """
352
353 return items(
354 *args,
355 pillar=pillar,
356 pillar_enc=pillar_enc,
357 pillarenv=pillarenv,
358 saltenv=saltenv,
359 unmask=unmask,
360 )
361
362
363def _obfuscate_inner(var):

Callers

nothing calls this directly

Calls 1

itemsFunction · 0.70

Tested by

no test coverage detected