Saltstack Official Apache Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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