Saltstack Official Apache Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
11 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # ``apache`` formula configuration:
  2. apache:
  3. # lookup section overrides ``map.jinja`` values
  4. lookup:
  5. server: apache2
  6. service: apache2
  7. vhostdir: /etc/apache2/sites-available
  8. confdir: /etc/apache2/conf.d
  9. confext: .conf
  10. logdir: /var/log/apache2
  11. wwwdir: /srv/apache2
  12. # ``apache.mod_wsgi`` formula additional configuration:
  13. mod_wsgi: mod_wsgi
  14. # ``apache.vhosts`` formula additional configuration:
  15. sites:
  16. example.net:
  17. template_file: salt://apache/vhosts/minimal.tmpl
  18. example.com: # must be unique; used as an ID declaration in Salt.
  19. enabled: True
  20. template_file: salt://apache/vhosts/standard.tmpl # or redirect.tmpl or proxy.tmpl
  21. ####################### DEFAULT VALUES BELOW ############################
  22. # NOTE: the values below are simply default settings that *can* be
  23. # overridden and are not required in order to use this formula to create
  24. # vhost entries.
  25. #
  26. # Do not copy the values below into your Pillar unless you intend to
  27. # modify these vaules.
  28. ####################### DEFAULT VALUES BELOW ############################
  29. template_engine: jinja
  30. interface: '*'
  31. port: '80'
  32. ServerName: example.com # uses the unique ID above unless specified
  33. ServerAlias: www.example.com
  34. ServerAdmin: webmaster@example.com
  35. LogLevel: warn
  36. ErrorLog: /path/to/logs/example.com-error.log # E.g.: /var/log/apache2/example.com-error.log
  37. CustomLog: /path/to/logs/example.com-access.log # E.g.: /var/log/apache2/example.com-access.log
  38. DocumentRoot: /path/to/www/dir/example.com # E.g., /var/www/example.com
  39. SSLCertificateFile: /etc/ssl/mycert.pem # if ssl is desired
  40. SSLCertificateKeyFile: /etc/ssl/mycert.pem.key # if key for cert is needed or in an extra file
  41. SSLCertificateChainFile: /etc/ssl/mycert.chain.pem # if you require a chain of server certificates file
  42. Directory:
  43. # "default" is a special case; Adds ``/path/to/www/dir/example.com``
  44. # E.g.: /var/www/example.com
  45. default:
  46. Options: -Indexes FollowSymLinks
  47. Order: allow,deny # For Apache < 2.4
  48. Allow: from all # For apache < 2.4
  49. Require: all granted # For apache > 2.4.
  50. AllowOverride: None
  51. Formula_Append: |
  52. Additional config as a
  53. multi-line string here
  54. # if template is 'redirect.tmpl'
  55. # RedirectSource: '/'
  56. # RedirectTarget: 'http://www.example.net'
  57. # if template is 'proxy.tmpl'
  58. # ProxyPreserveHost: 'On'
  59. # ProxyRoute:
  60. # my sample route:
  61. # ProxyPassSource: '/'
  62. # ProxyPassTarget: 'http://www.example.net'
  63. # ProxyPassReverseSource: '/'
  64. # ProxyPassReverseTarget: 'http://www.example.net'
  65. Formula_Append: |
  66. Additional config as a
  67. multi-line string here
  68. # ``apache.debian_full`` formula additional configuration:
  69. register-site:
  70. # any name as an array index, and you can duplicate this section
  71. UNIQUE_VALUE_HERE:
  72. name: 'my name'
  73. path: 'salt://path/to/sites-available/conf/file'
  74. state: 'enabled'
  75. # Optional - use managed file as Jinja Template
  76. #template: true
  77. #defaults:
  78. # custom_var: "default value"
  79. modules:
  80. enabled: # List modules to enable
  81. - ldap
  82. - ssl
  83. disabled: # List modules to disable
  84. - rewrite