Saltstack Official Nginx Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.rst 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .. _readme:
  2. nginx-formula
  3. =============
  4. |img_travis| |img_sr|
  5. .. |img_travis| image:: https://travis-ci.com/saltstack-formulas/nginx-formula.svg?branch=master
  6. :alt: Travis CI Build Status
  7. :scale: 100%
  8. :target: https://travis-ci.com/saltstack-formulas/nginx-formula
  9. .. |img_sr| image:: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
  10. :alt: Semantic Release
  11. :scale: 100%
  12. :target: https://github.com/semantic-release/semantic-release
  13. Formula to set up and configure
  14. `NGINX <https://www.nginx.com/>`_.
  15. .. list-table::
  16. :name: banner-breaking-changes-v1.0.0
  17. :header-rows: 1
  18. :widths: 1
  19. * - WARNING: BREAKING CHANGES SINCE ``v1.0.0``
  20. * - Prior to
  21. `v1.0.0 <https://github.com/saltstack-formulas/nginx-formula/releases/tag/v1.0.0>`_,
  22. this formula provided two methods for managing NGINX;
  23. the old method under ``nginx`` and the new method under ``nginx.ng``.
  24. The old method has now been removed and ``nginx.ng`` has been promoted to
  25. be ``nginx`` in its place.
  26. If you are not in a position to migrate, please pin your repo to the final
  27. release tag before
  28. `v1.0.0 <https://github.com/saltstack-formulas/nginx-formula/releases/tag/v1.0.0>`_,
  29. i.e.
  30. `v0.56.1 <https://github.com/saltstack-formulas/nginx-formula/releases/tag/v0.56.1>`_.
  31. To migrate from ``nginx.ng``, simply modify your pillar to promote the
  32. entire section under ``nginx:ng`` so that it is under ``nginx`` instead.
  33. So with the editor of your choice, highlight the entire section and then
  34. unindent one level. Finish by removing the ``ng:`` line.
  35. To migrate from the old ``nginx``, first convert to ``nginx.ng`` under
  36. `v0.56.1 <https://github.com/saltstack-formulas/nginx-formula/releases/tag/v0.56.1>`_
  37. and then follow the steps laid out in the paragraph directly above.
  38. .. contents:: **Table of Contents**
  39. General notes
  40. -------------
  41. See the full `SaltStack Formulas installation and usage instructions
  42. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  43. If you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section
  44. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas>`_.
  45. If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
  46. which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
  47. See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
  48. Contributing to this repo
  49. -------------------------
  50. **Commit message formatting is significant!!**
  51. Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
  52. Available states
  53. ================
  54. .. contents::
  55. :local:
  56. ``nginx``
  57. ---------
  58. Meta-state for inclusion of all states.
  59. **Note:** nginx requires the merge parameter of salt.modules.pillar.get(),
  60. first available in the Helium release.
  61. ``nginx.pkg``
  62. -------------
  63. Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
  64. ``nginx.src``
  65. -------------
  66. Builds and installs nginx from source.
  67. ``nginx.certificates``
  68. ----------------------
  69. Manages the deployment of nginx certificates.
  70. ``nginx.config``
  71. ----------------
  72. Manages the nginx main server configuration file.
  73. ``nginx.service``
  74. -----------------
  75. Manages the startup and running state of the nginx service.
  76. ``nginx.servers_config``
  77. ------------------------
  78. Manages virtual host files. This state only manages the content of the files
  79. and does not bind them to service calls.
  80. ``nginx.servers``
  81. -----------------
  82. Manages nginx virtual hosts files and binds them to service calls.
  83. ``nginx.passenger``
  84. -------------------
  85. Installs and configures Phusion Passenger module for nginx. You need to enable
  86. the upstream phusion passenger repository with `install_from_phusionpassenger: true`.
  87. Nginx will also be installed from that repository, as it needs to be modified to
  88. allow the passenger module to work.