1
0

salt-extend.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. .. _salt-extend:
  2. ===============
  3. ``salt-extend``
  4. ===============
  5. A utilty to generate extensions to the Salt source-code. This is used for :
  6. - Adding new execution modules, state modules
  7. - Adding unit tests to existing modules
  8. - Adding integration tests to existing modules
  9. Synopsis
  10. ========
  11. .. code-block:: bash
  12. salt-extend --help
  13. Description
  14. ===========
  15. ``salt-extend`` is a templating tool for extending SaltStack. If you're looking to add a module to
  16. SaltStack, then the ``salt-extend`` utility can guide you through the process.
  17. You can use Salt Extend to quickly create templated modules for adding new behaviours to some of the module subsystems within Salt.
  18. Salt Extend takes a template directory and merges it into a SaltStack source code directory.
  19. *See also*: :ref:`Salt Extend <development-salt-extend>`.
  20. Options
  21. =======
  22. .. program:: salt-extend
  23. .. option:: --extension, -e
  24. The extension type you want to develop, e.g. module, module_unit, state
  25. .. option:: --salt-directory, -o
  26. The path to the salt installation, defaults to .
  27. .. option:: --name, -n
  28. The module name for the new module
  29. .. option:: --description, -d
  30. A description of the new extension
  31. .. option:: --no-merge
  32. Don't merge the new module into the Salt source directory specified by `--salt-directory`, save
  33. to a temporary directory and print the directory path
  34. .. option:: --debug
  35. Print debug messages to stdout
  36. See also
  37. ========
  38. :manpage:`salt-api(1)`
  39. :manpage:`salt-call(1)`
  40. :manpage:`salt-cloud(1)`
  41. :manpage:`salt-cp(1)`
  42. :manpage:`salt-key(1)`
  43. :manpage:`salt-main(1)`
  44. :manpage:`salt-master(1)`
  45. :manpage:`salt-minion(1)`
  46. :manpage:`salt-run(1)`
  47. :manpage:`salt-ssh(1)`
  48. :manpage:`salt-syndic(1)`