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

11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
10 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ======
  2. apache
  3. ======
  4. Formulas to set up and configure the Apache HTTP server.
  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. ``apache``
  13. ----------
  14. Installs the Apache package and starts the service.
  15. ``apache.mod_proxy``
  16. -------------------
  17. Enables the Apache module mod_proxy.
  18. ``apache.mod_proxy_http``
  19. -------------------
  20. Enables the Apache module mod_proxy_http and requires the Apache module mod_proxy to be enabled.
  21. ``apache.mod_wsgi``
  22. -------------------
  23. Installs the mod_wsgi package and enables the Apache module.
  24. ``apache.vhosts.standard``
  25. -------------------------
  26. Configures Apache name-based virtual hosts using data from Pillar.
  27. Example Pillar:
  28. .. code:: yaml
  29. apache:
  30. sites:
  31. example.com: # must be unique; used as an ID declaration in Salt; also passed to the template context as {{ id }}
  32. template_file: salt://apache/vhosts/standard.tmpl
  33. ``apache.debian_full``
  34. ----------------------
  35. Installs and configures Apache on Debian and Ubuntu systems.
  36. These states are ordered using the ``order`` declaration. Different stages
  37. are divided into the following number ranges:
  38. 1) apache will use 1-500 for ordering
  39. 2) apache will reserve 1 -100 as unused
  40. 3) apache will reserve 101-150 for pre pkg install
  41. 4) apache will reserve 151-200 for pkg install
  42. 5) apache will reserve 201-250 for pkg configure
  43. 6) apache will reserve 251-300 for downloads, git stuff, load data
  44. 7) apache will reserve 301-400 for unknown purposes
  45. 8) apache will reserve 401-450 for service restart-reloads
  46. 9) apache WILL reserve 451-460 for service.running
  47. 10) apache will reserve 461-500 for cmd requiring operational services
  48. Dependencies:
  49. * `apt <https://github.com/saltstack-formulas/apt-formula>`_
  50. Optional dependencies:
  51. * `php <https://github.com/saltstack-formulas/php-formula>`_
  52. Example Pillar:
  53. .. code:: yaml
  54. apache:
  55. register-site:
  56. # any name as an array index, and you can duplicate this section
  57. {{UNIQUE}}:
  58. name: 'my name'
  59. path: 'salt://path/to/sites-available/conf/file'
  60. state: 'enabled'