Saltstack Official Apache 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.

232 satır
5.5KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. #
  4. # Setup variables using grains['os_family'] based logic.
  5. # You just need to add the key:values for an `os_family` that differ
  6. # from `defaults.yaml` + `osarch.yaml`.
  7. # Only add an `os_family` which is/will be supported by the formula.
  8. #
  9. # If you do not need to provide defaults via the `os_family` grain,
  10. # you will need to provide at least an empty dict in this file, e.g.
  11. # osfamilymap: {}
  12. ---
  13. Debian:
  14. pkg:
  15. name: apache2
  16. deps:
  17. - libapache2-mod-security2
  18. - libapache2-mod-geoip
  19. # libapache2-mod-fcgid
  20. # libapache2-mod-upload-progress
  21. service:
  22. name: apache2
  23. user: www-data
  24. group: www-data
  25. config: /etc/apache2/apache2.conf
  26. portsfile: /etc/apache2/ports.conf
  27. mod_wsgi: libapache2-mod-wsgi
  28. mod_php5: libapache2-mod-php
  29. mod_perl2: libapache2-mod-perl2
  30. mod_fcgid: libapache2-mod-fcgid
  31. mod_upload_progress: libapache2-mod-upload-progress
  32. mod_pagespeed: mod-pagespeed-stable
  33. # yamllint disable-line rule:line-length
  34. mod_pagespeed_source: https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
  35. mod_xsendfile: libapache2-mod-xsendfile
  36. mod_fastcgi: libapache2-mod-fastcgi
  37. mod_geoip: libapache2-mod-geoip
  38. mod_geoip_database: geoip-database
  39. vhostdir: /etc/apache2/sites-available
  40. confdir: /etc/apache2/conf-available
  41. modulesdir: /usr/lib64/apache2/modules
  42. confext: .conf
  43. default_site: default
  44. default_site_ssl: default-ssl
  45. logdir: /var/log/apache2
  46. logrotatedir: /etc/logrotate.d/apache2
  47. wwwdir: /srv
  48. moddir: /etc/apache2/mods-enabled
  49. sitesdir: /etc/apache2/sites-enabled
  50. RedHat:
  51. pkg:
  52. name: httpd
  53. deps:
  54. - mod_ssl
  55. - mod_security
  56. - mod_geoip
  57. - GeoIP
  58. service:
  59. name: httpd
  60. user: apache
  61. group: apache
  62. config: /etc/httpd/conf/httpd.conf
  63. mod_ssl_pkg: mod_ssl
  64. mod_wsgi: mod_wsgi
  65. conf_mod_wsgi: /etc/httpd/conf.d/wsgi.conf
  66. mod_php5: php
  67. mod_fcgid: mod_fcgid
  68. # yamllint disable-line rule:line-length
  69. mod_pagespeed_source: https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
  70. mod_geoip: mod_geoip
  71. mod_geoip_database: GeoIP
  72. vhostdir: /etc/httpd/conf.d
  73. confdir: /etc/httpd/conf.d
  74. modulesdir: /usr/lib64/httpd/modules
  75. confext: .conf
  76. default_site: default
  77. default_site_ssl: ssl
  78. logdir: /var/log/httpd
  79. logrotatedir: /etc/logrotate.d/httpd
  80. wwwdir: /var/www
  81. default_charset: UTF-8
  82. use_require: false
  83. moddir: /etc/httpd/conf.modules.d
  84. sitesdir: /etc/httpd/conf.d
  85. logrotatecontents: |
  86. {{ apache.logdir }}/*log {
  87. missingok
  88. notifempty
  89. sharedscripts
  90. delaycompress
  91. postrotate
  92. /bin/systemctl reload {{ apache.service.name }} > /dev/null 2>/dev/null || true
  93. endscript
  94. }
  95. Suse:
  96. pkg:
  97. name: apache2
  98. deps:
  99. - apache2-mod_security2
  100. service:
  101. name: apache2
  102. user: wwwrun
  103. group: wwwrun
  104. config: /etc/apache2/httpd.conf
  105. portsfile: /etc/apache2/ports.conf
  106. mod_wsgi: apache2-mod_wsgi
  107. mod_php5: apache2-mod_php5
  108. mod_fcgid: apache2-mod_fcgid
  109. mod_perl2: apache2-mod_perl
  110. mod_upload_progress: apache2-mod_upload_progress
  111. mod_pagespeed: apache2-mod_pagespeed
  112. mod_geoip: apache2-mod_geoip
  113. mod_geoip_database: GeoIP-data
  114. vhostdir: /etc/apache2/vhosts.d
  115. confdir: /etc/apache2/conf.d
  116. modulesdir: /usr/lib64/apache2/modules
  117. confext: .conf
  118. default_site: vhost.template
  119. default_site_ssl: vhost-ssl.template
  120. logdir: /var/log/apache2
  121. logrotatedir: /etc/logrotate.d/apache2
  122. wwwdir: /srv/www
  123. moddir: /etc/apache2/mods-enabled
  124. sitesdir: /etc/apache2/vhosts.d
  125. Gentoo:
  126. pkg:
  127. name: www-servers/apache
  128. service:
  129. name: apache2
  130. user: apache
  131. group: apache
  132. config: /etc/apache2/httpd.conf
  133. mod_wsgi: www-apache/mod_wsgi
  134. mod_fcgid: www-apache/mod_fcgid
  135. vhostdir: /etc/apache2/vhosts.d
  136. confdir: /etc/conf.d/apache2
  137. modulesdir: /usr/lib64/apache2/modules
  138. confext: .conf
  139. default_site: default
  140. default_site_ssl: default-ssl
  141. logdir: /var/log/apache2
  142. logrotatedir: /etc/logrotate.d/apache2
  143. wwwdir: /var/www
  144. moddir: /etc/apache2/mods-enabled
  145. sitesdir: /etc/apache2/sites-enabled
  146. Arch:
  147. pkg:
  148. name: apache
  149. deps:
  150. - geoip
  151. - libxml2
  152. service:
  153. name: httpd
  154. service_state: skip
  155. user: http
  156. group: http
  157. config: /etc/httpd/conf/httpd.conf
  158. mod_wsgi: mod_wsgi
  159. mod_security:
  160. package: libmodsecurity
  161. mod_geoip: null
  162. mod_geoip_database: geoip-database
  163. vhostdir: /etc/httpd/conf/vhosts
  164. confdir: /etc/httpd/conf/extra
  165. davlockdbdir: /etc/httpd/var/DavLock
  166. modulesdir: /usr/lib/httpd/modules
  167. confext: .conf
  168. logdir: /var/log/httpd
  169. logrotatedir: /etc/logrotate.d/httpd
  170. wwwdir: /srv/http
  171. default_site: default
  172. default_site_ssl: default-ssl
  173. moddir: /etc/httpd/conf.modules.d
  174. sitesdir: /etc/httpd/sites-enabled
  175. Alpine: {}
  176. FreeBSD:
  177. pkg:
  178. name: apache24
  179. rootgroup: wheel
  180. service:
  181. name: apache24
  182. user: www
  183. group: www
  184. config: /usr/local/etc/apache24/httpd.conf
  185. portsfile: /usr/local/etc/apache24/ports.conf
  186. mod_php5: mod_php56
  187. mod_perl2: ap24-mod_perl2
  188. mod_wsgi: ap24-mod_wsgi3
  189. vhostdir: /usr/local/etc/apache24/Includes
  190. confdir: /usr/local/etc/apache24/extra
  191. modulesdir: /usr/local/etc/apache24/modules.d
  192. global_document_root: /usr/local/www/apache24/data
  193. confext: ''
  194. default_site: default
  195. default_site_ssl: default-ssl
  196. moddir: /usr/local/etc/apache24/modules.d
  197. logdir: /var/log/
  198. logrotatedir: /usr/local/etc/logrotate.d/apache2
  199. wwwdir: /usr/local/www/apache24/
  200. OpenBSD:
  201. rootgroup: wheel
  202. Solaris: {}
  203. Windows:
  204. pkg:
  205. name: apache-httpd
  206. service:
  207. name: apache
  208. MacOS: {}