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.

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