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.

map.jinja 3.5KB

9 lat temu
9 lat temu
9 lat temu
9 lat temu
9 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {% set master = salt['grains.filter_by']({
  2. 'Arch': {
  3. 'pkgs': ['salt-zmq'],
  4. 'service': 'salt-master',
  5. 'pillar': {
  6. 'engine': 'salt',
  7. },
  8. 'accept_policy': 'preseed',
  9. 'bind': {},
  10. 'formula': {},
  11. 'base_environment': 'dev',
  12. },
  13. 'Debian': {
  14. 'pkgs': ['salt-master'],
  15. 'service': 'salt-master',
  16. 'pillar': {
  17. 'engine': 'salt',
  18. },
  19. 'accept_policy': 'preseed',
  20. 'bind': {},
  21. 'formula': {},
  22. 'base_environment': 'dev',
  23. },
  24. 'Gentoo': {
  25. 'pkgs': ['app-admin/salt'],
  26. 'service': 'salt-master',
  27. 'pillar': {
  28. 'engine': 'salt',
  29. },
  30. 'accept_policy': 'preseed',
  31. 'bind': {},
  32. 'formula': {},
  33. 'base_environment': 'dev',
  34. },
  35. 'MacOS': {
  36. 'pkgs': ['saltstack'],
  37. 'service': 'salt-master',
  38. 'pillar': {
  39. 'engine': 'salt',
  40. },
  41. 'accept_policy': 'preseed',
  42. 'bind': {},
  43. 'formula': {},
  44. 'base_environment': 'dev',
  45. },
  46. 'RedHat': {
  47. 'pkgs': ['salt-master'],
  48. 'service': 'salt-master',
  49. 'pillar': {
  50. 'engine': 'salt',
  51. },
  52. 'accept_policy': 'preseed',
  53. 'bind': {},
  54. 'formula': {},
  55. 'base_environment': 'dev',
  56. },
  57. }, merge=salt['pillar.get']('salt:master')) %}
  58. {% set minion = salt['grains.filter_by']({
  59. 'Arch': {
  60. 'pkgs': ['salt-zmq'],
  61. 'graph_pkgs': ['graphviz'],
  62. 'graph_states_pkgs': ['python-pydot', 'python-yaml'],
  63. 'graph_states': False,
  64. 'service': 'salt-minion',
  65. },
  66. 'Debian': {
  67. 'pkgs': ['salt-minion'],
  68. 'graph_pkgs': ['graphviz'],
  69. 'graph_states_pkgs': ['python-pydot', 'python-yaml'],
  70. 'graph_states': False,
  71. 'service': 'salt-minion',
  72. },
  73. 'Gentoo': {
  74. 'pkgs': ['app-admin/salt'],
  75. 'graph_pkgs': ['graphviz'],
  76. 'graph_states_pkgs': ['python-pydot', 'python-yaml'],
  77. 'graph_states': False,
  78. 'service': 'salt-minion',
  79. },
  80. 'MacOS': {
  81. 'pkgs': ['saltstack'],
  82. 'graph_pkgs': ['graphviz'],
  83. 'graph_states_pkgs': ['python-pydot', 'python-yaml'],
  84. 'graph_states': False,
  85. 'service': 'salt-minion',
  86. },
  87. 'RedHat': {
  88. 'pkgs': ['salt-minion'],
  89. 'graph_pkgs': ['graphviz'],
  90. 'graph_states_pkgs': ['python-pydot', 'python-yaml'],
  91. 'graph_states': False,
  92. 'service': 'salt-minion',
  93. },
  94. }, merge=salt['pillar.get']('salt:minion')) %}
  95. {% set api = salt['grains.filter_by']({
  96. 'Debian': {
  97. 'pkgs': ['salt-api'],
  98. 'service': 'salt-api',
  99. },
  100. 'RedHat': {
  101. 'pkgs': ['salt-api'],
  102. 'service': 'salt-api',
  103. },
  104. }, merge=salt['pillar.get']('salt:api')) %}
  105. {% set control = salt['grains.filter_by']({
  106. 'Debian': {
  107. 'cloud_pips': ['apache-libcloud', 'netaddr'],
  108. 'cloud_pkgs': ['python-netaddr', 'python-libcloud'],
  109. 'virt_pips': ['libvirt-python',],
  110. 'virt_pkgs': ['libvirt-dev', 'pkg-config', 'libguestfs-tools'],
  111. 'maas_pkgs': ['python-maas-client',],
  112. 'cluster': {},
  113. },
  114. 'RedHat': {
  115. 'cloud_pips': ['apache-libcloud', 'netaddr'],
  116. 'cloud_pkgs': ['python-netaddr', 'python-libcloud'],
  117. 'virt_pips': ['libvirt-python',],
  118. 'virt_pkgs': ['libvirt-dev', 'pkg-config'],
  119. 'maas_pkgs': ['python-maas-client',],
  120. 'cluster': {},
  121. },
  122. }, merge=salt['pillar.get']('salt:control')) %}