Saltstack Official Nginx Formula
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.rst 1.9KB

11 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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/topics/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. Next-generation, alternate approach
  34. ===================================
  35. The following states provide an alternate approach to managing Nginx and Nginx
  36. vhosts, as well as code organization. Please provide feedback by filing issues,
  37. discussing in ``#salt`` in Freenode and the mailing list as normal.
  38. .. contents::
  39. :local:
  40. ``nginx.ng``
  41. ------------
  42. Meta-state for inclusion of all ng states.
  43. **Note:** nginx.ng requires the merge parameter of salt.modules.pillar.get(),
  44. first available in the Helium release.
  45. ``nginx.ng.install``
  46. --------------------
  47. Installs the nginx package.
  48. ``nginx.ng.config``
  49. -------------------
  50. Manages the nginx main server configuration file.
  51. ``nginx.ng.service``
  52. --------------------
  53. Manages the startup and running state of the nginx service.
  54. ``nginx.ng.vhosts_config``
  55. --------------------------
  56. Manages virtual host files. This state only manages the content of the files
  57. and does not bind them to service calls.
  58. ``nginx.ng.vhosts``
  59. -------------------
  60. Manages nginx virtual hosts files and binds them to service calls.