New version of salt-formula from Saltstack
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 9 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. 'python_pkgs': ['apache-libcloud', 'netaddr'],
  108. 'pkgs': ['python-netaddr', 'python-libcloud'],
  109. 'cluster': {},
  110. },
  111. 'RedHat': {
  112. 'python_pkgs': ['apache-libcloud', 'netaddr'],
  113. 'pkgs': ['python-netaddr', 'python-libcloud'],
  114. 'cluster': {},
  115. },
  116. }, merge=salt['pillar.get']('salt:control')) %}