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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {% import_yaml "apache/osfingermap.yaml" as osfingermap %}
  2. {% set apache = salt['grains.filter_by']({
  3. 'Debian': {
  4. 'server': 'apache2',
  5. 'service': 'apache2',
  6. 'configfile': '/etc/apache2/apache2.conf',
  7. 'mod_wsgi': 'libapache2-mod-wsgi',
  8. 'mod_php5': 'libapache2-mod-php5',
  9. 'mod_fcgid': 'libapache2-mod-fcgid',
  10. 'mod_pagespeed_source': 'https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb',
  11. 'vhostdir': '/etc/apache2/sites-available',
  12. 'confdir': '/etc/apache2/conf.d',
  13. 'confext': '.conf',
  14. 'default_site': 'default',
  15. 'default_site_ssl': 'default-ssl',
  16. 'logdir': '/var/log/apache2',
  17. 'wwwdir': '/srv',
  18. 'use_require': False,
  19. },
  20. 'RedHat': {
  21. 'server': 'httpd',
  22. 'service': 'httpd',
  23. 'configfile': '/etc/httpd/conf/httpd.conf',
  24. 'mod_wsgi': 'mod_wsgi',
  25. 'mod_php5': 'php',
  26. 'mod_pagespeed_source': 'https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm',
  27. 'vhostdir': '/etc/httpd/vhosts.d',
  28. 'confdir': '/etc/httpd/conf.d',
  29. 'confext': '.conf',
  30. 'default_site': 'default',
  31. 'default_site_ssl': 'default-ssl',
  32. 'logdir': '/var/log/httpd',
  33. 'wwwdir': '/var/www',
  34. 'use_require': False,
  35. },
  36. 'Suse': {
  37. 'server': 'apache2',
  38. 'service': 'apache2',
  39. 'configfile': '/etc/apache2/httpd.conf',
  40. 'mod_wsgi': 'apache2-mod_wsgi',
  41. 'mod_php5': 'apache2-mod_php5',
  42. 'mod_fcgid': 'apache2-mod_fcgid',
  43. 'vhostdir': '/etc/apache2/vhosts.d',
  44. 'confdir': '/etc/httpd/conf.d',
  45. 'confext': '.conf',
  46. 'default_site': 'vhost.template',
  47. 'default_site_ssl': 'vhost-ssl.template',
  48. 'logdir': '/var/log/apache2',
  49. 'wwwdir': '/srv/www',
  50. 'use_require': True,
  51. },
  52. 'FreeBSD': {
  53. 'server': 'apache22',
  54. 'service': 'apache22',
  55. 'configfile': '/usr/local/etc/apache22/httpd.conf',
  56. 'mod_wsgi': 'ap22-mod_wsgi3',
  57. 'vhostdir': '/usr/local/etc/apache22/Includes',
  58. 'confdir': '/usr/local/etc/apache22/Includes',
  59. 'confext': '',
  60. 'default_site': 'default',
  61. 'default_site_ssl': 'default-ssl',
  62. 'logdir': '/var/log/',
  63. 'wwwdir': '/usr/local/www/apache22/',
  64. 'use_require': False,
  65. },
  66. }, merge=salt['grains.filter_by']({
  67. 'trusty': {
  68. 'confext': '.conf',
  69. 'default_site': '000-default.conf',
  70. 'default_site_ssl': 'default-ssl.conf',
  71. 'use_require': True,
  72. },
  73. 'utopic': {
  74. 'confext': '.conf',
  75. 'default_site': '000-default.conf',
  76. 'default_site_ssl': 'default-ssl.conf',
  77. 'use_require': True,
  78. },
  79. 'vivid': {
  80. 'confext': '.conf',
  81. 'default_site': '000-default.conf',
  82. 'default_site_ssl': 'default-ssl.conf',
  83. 'use_require': True,
  84. },
  85. 'wily': {
  86. 'confext': '.conf',
  87. 'default_site': '000-default.conf',
  88. 'default_site_ssl': 'default-ssl.conf',
  89. 'use_require': True,
  90. },
  91. 'jessie': {
  92. 'wwwdir': '/var/www',
  93. 'confext': '.conf',
  94. 'default_site': '000-default.conf',
  95. 'default_site_ssl': 'default-ssl.conf',
  96. 'use_require': True,
  97. },
  98. }, grain='oscodename', merge=salt['grains.filter_by'](
  99. osfingermap
  100. , grain='osfinger', merge=salt['pillar.get']('apache:lookup')))) %}