Saltstack Official Nginx Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

10 лет назад
11 лет назад
10 лет назад
10 лет назад
7 лет назад
7 лет назад
7 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.pkg``
  50. --------------------
  51. Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
  52. ``nginx.ng.src``
  53. --------------------
  54. Builds and installs nginx from source.
  55. ``nginx.ng.config``
  56. -------------------
  57. Manages the nginx main server configuration file.
  58. ``nginx.ng.service``
  59. --------------------
  60. Manages the startup and running state of the nginx service.
  61. ``nginx.ng.servers_config``
  62. --------------------------
  63. Manages virtual host files. This state only manages the content of the files
  64. and does not bind them to service calls.
  65. ``nginx.ng.servers``
  66. -------------------
  67. Manages nginx virtual hosts files and binds them to service calls.
  68. ``nginx.ng.passenger``
  69. ----------------------
  70. Installs and configures Phusion Passenger module for nginx. You need to enable
  71. the upstream phusion passenger repository with `install_from_phusionpassenger: true`.
  72. Nginx will also be installed from that repository, as it needs to be modified to
  73. allow the passenger module to work.