MCPcopy
hub / github.com/saltstack/salt / opts_pkg

Function opts_pkg

salt/modules/test.py:489–504  ·  view source on GitHub ↗

Return an ``opts`` package with the ``grains`` and ``opts`` for this Minion. This is primarily used to create the options used for Master side state compiling routines CLI Example: .. code-block:: bash salt '*' test.opts_pkg

()

Source from the content-addressed store, hash-verified

487
488
489def opts_pkg():
490 """
491 Return an ``opts`` package with the ``grains`` and ``opts`` for this Minion.
492 This is primarily used to create the options used for Master side
493 state compiling routines
494
495 CLI Example:
496
497 .. code-block:: bash
498
499 salt '*' test.opts_pkg
500 """
501 ret = {}
502 ret.update(__opts__)
503 ret["grains"] = __grains__.value()
504 return ret
505
506
507def rand_str(size=9999999999, hash_type=None):

Callers

nothing calls this directly

Calls 2

updateMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected