New version of salt-formula from Saltstack
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

master.conf 2.3KB

9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {%- from "salt/map.jinja" import master with context %}
  2. {%- from "linux/map.jinja" import system with context %}
  3. worker_threads: {{ master.worker_threads }}
  4. timeout: {{ master.command_timeout }}
  5. {%- if master.get('max_open_files') %}
  6. max_open_files: {{ master.max_open_files }}
  7. {%- endif %}
  8. state_output: {{ master.get('state_output', 'changes') }}
  9. {%- if master.system is defined %}
  10. file_roots:
  11. base:
  12. - {{ master.dir.files }}/{{ master.system.environment }}
  13. {%- for formula_name, formula in master.system.get('formula', {}).iteritems() %}
  14. - {{ master.dir.files }}/{{ master.system.environment }}/{{ formula_name }}
  15. {%- endfor %}
  16. {{ master.system.environment }}:
  17. - {{ master.dir.files }}/{{ master.system.environment }}
  18. {%- for formula_name, formula in master.system.get('formula', {}).iteritems() %}
  19. - {{ master.dir.files }}/{{ master.system.environment }}/{{ formula_name }}
  20. {%- endfor %}
  21. {%- else %}
  22. file_roots:
  23. {%- for environment_name, environment in master.get('environment', {}).iteritems() %}
  24. {%- if master.base_environment == environment_name %}
  25. base:
  26. - {{ master.dir.files }}/{{ environment_name }}
  27. {%- endif %}
  28. {{ environment_name }}:
  29. - {{ master.dir.files }}/{{ environment_name }}
  30. {%- endfor %}
  31. {%- endif %}
  32. pillar_opts: False
  33. {%- if master.accept_policy == 'open_mode' %}
  34. open_mode: True
  35. {%- endif %}
  36. {%- if master.accept_policy == 'auto_accept' %}
  37. auto_accept: True
  38. {%- endif %}
  39. {%- if master.get('max_event_size') %}
  40. max_event_size: {{ master.max_event_size }}
  41. {%- endif %}
  42. {%- if master.pillar.engine == 'salt' %}
  43. pillar_roots:
  44. base:
  45. - /srv/salt/pillar
  46. {%- endif %}
  47. {%- if master.pillar.engine == 'reclass' %}
  48. reclass: &reclass
  49. storage_type: yaml_fs
  50. inventory_base_uri: /srv/salt/reclass
  51. ext_pillar:
  52. - reclass: *reclass
  53. master_tops:
  54. reclass: *reclass
  55. {%- endif %}
  56. {%- for handler in pillar.salt.minion.get("handlers", []) %}
  57. {%- if handler.engine == "udp"%}
  58. logstash_udp_handler:
  59. host: {{ handler.host }}
  60. port: {{ handler.port }}
  61. version: 1
  62. {%- endif %}
  63. {%- if handler.engine == "zmq"%}
  64. logstash_zmq_handler:
  65. address: tcp://{{ handler.host }}:{{ handler.port }}
  66. version: 1
  67. {%- endif %}
  68. {%- endfor %}
  69. {%- if master.get('order_masters', False) %}
  70. order_masters: True
  71. {%- endif %}
  72. {#-
  73. vim: syntax=jinja
  74. -#}