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
()
| 487 | |
| 488 | |
| 489 | def 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 | |
| 507 | def rand_str(size=9999999999, hash_type=None): |