Saltstack Official Nginx Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.
  65. ``nginx.ng.passenger``
  66. ----------------------
  67. Installs and configures Phusion Passenger module for nginx. You need to enable
  68. the upstream phusion passenger repository with `install_from_phusionpassenger: true`.
  69. Nginx will also be installed from that repository, as it needs to be modified to
  70. allow the passenger module to work.