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