Saltstack Official Nginx Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pillar.example 3.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. nginx:
  2. install_from_source: True
  3. use_upstart: True
  4. user_auth_enabled: True
  5. with_luajit: False
  6. with_openresty: True
  7. modules:
  8. headers-more:
  9. source: http://github.com/agentzh/headers-more-nginx-module/tarball/v0.21
  10. source_hash: sha1=dbf914cbf3f7b6cb7e033fa7b7c49e2f8879113b
  11. # ========
  12. # nginx.ng
  13. # ========
  14. nginx:
  15. ng:
  16. # These are usually set by grains in map.jinja
  17. lookup:
  18. package: nginx-custom
  19. service: nginx
  20. webuser: www-data
  21. conf_file: /etc/nginx/nginx.conf
  22. vhost_available: /etc/nginx/sites-available
  23. vhost_enabled: /etc/nginx/sites-enabled
  24. vhost_use_symlink: True
  25. # Source compilation is not currently a part of nginx.ng
  26. from_source: False
  27. package:
  28. opts: {} # this partially exposes parameters of pkg.installed
  29. service:
  30. enable: True # Whether or not the service will be enabled/running or dead
  31. opts: {} # this partially exposes parameters of service.running / service.dead
  32. server:
  33. opts: {} # this partially exposes file.managed parameters as they relate to the main nginx.conf file
  34. # nginx.conf (main server) declarations
  35. # dictionaries map to blocks {} and lists cause the same declaration to repeat with different values
  36. config:
  37. worker_processes: 4
  38. pid: /run/nginx.pid
  39. events:
  40. worker_connections: 768
  41. http:
  42. sendfile: on
  43. include:
  44. - /etc/nginx/mime.types
  45. - /etc/nginx/conf.d/*.conf
  46. vhosts:
  47. disabled_postfix: .disabled # a postfix appended to files when doing non-symlink disabling
  48. symlink_opts: {} # partially exposes file.symlink params when symlinking enabled sites
  49. rename_opts: {} # partially exposes file.rename params when not symlinking disabled/enabled sites
  50. managed_opts: {} # partially exposes file.managed params for managed vhost files
  51. dir_opts: {} # partially exposes file.directory params for site available/enabled dirs
  52. # vhost declarations
  53. # vhosts will default to being placed in vhost_available
  54. managed:
  55. mysite: # relative pathname of the vhost file
  56. # may be True, False, or None where True is enabled, False, disabled, and None indicates no action
  57. dir: /tmp # an alternate directory (not sites-available) where this vhost may be found
  58. disabled_name: mysite.aint_on # an alternative disabled name to be use when not symlinking
  59. enabled: True
  60. # May be a list of config options or None, if None, no vhost file will be managed/templated
  61. # Take server directives as lists of dictionaries. If the dictionary value is another list of
  62. # dictionaries a block {} will be started with the dictionary key name
  63. config:
  64. - server:
  65. - server_name: localhost
  66. - listen:
  67. - 80
  68. - default_server
  69. - index:
  70. - index.html
  71. - index.htm
  72. - location ~ .htm:
  73. - try_files:
  74. - $uri
  75. - $uri/ =404
  76. - test: something else
  77. # The above outputs:
  78. # server {
  79. # server_name localhost;
  80. # listen 80 default_server;
  81. # index index.html index.htm;
  82. # location ~ .htm {
  83. # try_files $uri $uri/ =404;
  84. # test something else;
  85. # }
  86. # }