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 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 nginx
  14. .. contents:: **Table of Contents**
  15. General notes
  16. -------------
  17. See the full `SaltStack Formulas installation and usage instructions
  18. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html>`_.
  19. If you are interested in writing or contributing to formulas, please pay attention to the `Writing Formula Section
  20. <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#writing-formulas>`_.
  21. If you want to use this formula, please pay attention to the ``FORMULA`` file and/or ``git tag``,
  22. which contains the currently released version. This formula is versioned according to `Semantic Versioning <http://semver.org/>`_.
  23. See `Formula Versioning Section <https://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#versioning>`_ for more details.
  24. Contributing to this repo
  25. -------------------------
  26. **Commit message formatting is significant!!**
  27. Please see :ref:`How to contribute <CONTRIBUTING>` for more details.
  28. Available states
  29. ================
  30. .. contents::
  31. :local:
  32. ``nginx``
  33. ---------
  34. Meta-state for inclusion of all states.
  35. **Note:** nginx requires the merge parameter of salt.modules.pillar.get(),
  36. first available in the Helium release.
  37. ``nginx.pkg``
  38. -------------
  39. Installs nginx from package, from the distribution repositories, the official nginx repo or the ppa from Launchpad.
  40. ``nginx.src``
  41. -------------
  42. Builds and installs nginx from source.
  43. ``nginx.certificates``
  44. ----------------------
  45. Manages the deployment of nginx certificates.
  46. ``nginx.config``
  47. ----------------
  48. Manages the nginx main server configuration file.
  49. ``nginx.service``
  50. -----------------
  51. Manages the startup and running state of the nginx service.
  52. ``nginx.servers_config``
  53. ------------------------
  54. Manages virtual host files. This state only manages the content of the files
  55. and does not bind them to service calls.
  56. ``nginx.servers``
  57. -----------------
  58. Manages nginx virtual hosts files and binds them to service calls.
  59. ``nginx.passenger``
  60. -------------------
  61. Installs and configures Phusion Passenger module for nginx. You need to enable
  62. the upstream phusion passenger repository with `install_from_phusionpassenger: true`.
  63. Nginx will also be installed from that repository, as it needs to be modified to
  64. allow the passenger module to work.