Saltstack Official Nginx Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. =====
  2. nginx
  3. =====
  4. Install nginx either by source or by package.
  5. .. note::
  6. See the full `Salt Formulas installation and usage instructions
  7. <http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  8. Available states
  9. ================
  10. .. contents::
  11. :local:
  12. ``nginx``
  13. ---------
  14. Runs the states to install nginx, configure the common files, and the users.
  15. ``nginx.common``
  16. ----------------
  17. Ensures standard nginx files are in place, and configures enabled sites.
  18. ``nginx.luajit2``
  19. -----------------
  20. Installs luajit.
  21. ``nginx.openresty``
  22. -------------------
  23. Installs openresty.
  24. ``nginx.package``
  25. -----------------
  26. Installs the nginx package via package manager.
  27. ``nginx.source``
  28. ----------------
  29. Installs nginx via the source files.
  30. ``nginx.users``
  31. ---------------
  32. Installs apache utils, and configures nginx users specified in the pillar.
  33. This requires `basicauth <https://github.com/saltstack/salt-contrib/blob/master/modules/basicauth.py>`_
  34. from `salt-contrib <https://github.com/saltstack/salt-contrib/>`_ (either add it to your salt or ship
  35. this single file in your `_modules` directory see `Dynamic Module Distribution
  36. <https://docs.saltstack.com/en/latest/ref/file_server/dynamic-modules.html>`_
  37. Next-generation, alternate approach
  38. ===================================
  39. The following states provide an alternate approach to managing Nginx and Nginx
  40. servers, as well as code organization. Please provide feedback by filing issues,
  41. discussing in ``#salt`` in Freenode and the mailing list as normal.
  42. .. contents::
  43. :local:
  44. ``nginx.ng``
  45. ------------
  46. Meta-state for inclusion of all ng states.
  47. **Note:** nginx.ng requires the merge parameter of salt.modules.pillar.get(),
  48. first available in the Helium release.
  49. ``nginx.ng.install``
  50. --------------------
  51. Installs the nginx package.
  52. ``nginx.ng.config``
  53. -------------------
  54. Manages the nginx main server configuration file.
  55. ``nginx.ng.service``
  56. --------------------
  57. Manages the startup and running state of the nginx service.
  58. ``nginx.ng.servers_config``
  59. --------------------------
  60. Manages virtual host files. This state only manages the content of the files
  61. and does not bind them to service calls.
  62. ``nginx.ng.servers``
  63. -------------------
  64. Manages nginx virtual hosts files and binds them to service calls.