New version of salt-formula from Saltstack
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ---
  2. driver:
  3. name: docker
  4. hostname: salt.ci.local
  5. use_sudo: false
  6. provisioner:
  7. name: salt_solo
  8. salt_install: bootstrap
  9. salt_bootstrap_url: https://bootstrap.saltstack.com
  10. salt_version: latest
  11. salt_minion_id: salt.ci.local
  12. require_chef: false
  13. log_level: error
  14. formula: salt
  15. grains:
  16. noservices: true
  17. vendor_repo:
  18. - type: apt
  19. url: http://apt-mk.mirantis.com/xenial
  20. key_url: http://apt-mk.mirantis.com/public.gpg
  21. components: salt
  22. distribution: testing
  23. state_top:
  24. base:
  25. "*":
  26. - salt
  27. pillars:
  28. top.sls:
  29. base:
  30. "*":
  31. - salt
  32. - common
  33. common.sls:
  34. salt:
  35. minion:
  36. enabled: true
  37. master:
  38. host: localhost
  39. pkgs:
  40. - python-m2crypto
  41. - python-psutil
  42. - python-yaml
  43. linux:
  44. system:
  45. enabled: true
  46. name: salt
  47. domain: ci.local
  48. dependencies:
  49. - name: git
  50. repo: git
  51. source: https://github.com/salt-formulas/salt-formula-git.git
  52. - name: reclass
  53. repo: git
  54. source: https://github.com/salt-formulas/salt-formula-reclass.git
  55. verifier:
  56. name: inspec
  57. sudo: true
  58. platforms:
  59. - name: <%=ENV['PLATFORM'] || 'ubuntu-xenial'%>
  60. driver_config:
  61. image: <%=ENV['PLATFORM'] || 'trevorj/salty-whales:xenial'%>
  62. platform: ubuntu
  63. suites:
  64. - name: minion-default
  65. provisioner:
  66. pillars:
  67. top.sls:
  68. base:
  69. "*":
  70. - common
  71. - minion_pki
  72. - minion_mine
  73. - minion_graph
  74. - minion_handler
  75. - minion_local_pillar
  76. - minion_local_reclass
  77. pillars-from-files:
  78. minion_pki.sls: tests/pillar/minion_pki_ca.sls
  79. minion_mine.sls: tests/pillar/minion_mine.sls
  80. minion_graph.sls: tests/pillar/minion_graph.sls
  81. minion_handler.sls: tests/pillar/minion_custom_handler.sls
  82. minion_local_pillar.sls: tests/pillar/minion_local_pillar.sls
  83. minion_local_reclass.sls: tests/pillar/minion_local_reclass.sls
  84. minion_backend_urllib.sls: tests/pillar/minion_backend_urllib.sls
  85. - name: master-default
  86. provisioner:
  87. pillars:
  88. top.sls:
  89. base:
  90. "*":
  91. - common
  92. - minion_pki
  93. - master_api
  94. - master_acl
  95. - master_ssh_key
  96. - master_ssh_password
  97. - master_ssh_root
  98. - minion_pki_cert
  99. - master_formulas
  100. common.sls:
  101. salt:
  102. master:
  103. #Use a useless package to avoid upgrading salt-master
  104. pkgs:
  105. - python-yaml
  106. pillars-from-files:
  107. minion_pki.sls: tests/pillar/minion_pki_ca.sls
  108. minion_pki_cert.sls: tests/pillar/minion_pki_cert.sls
  109. master_api.sls: tests/pillar/master_api.sls
  110. master_acl.sls: tests/pillar/master_acl.sls
  111. master_ssh_key.sls: tests/pillar/master_ssh_minion_key.sls
  112. master_ssh_password.sls: tests/pillar/master_ssh_minion_password.sls
  113. master_ssh_root.sls: tests/pillar/master_ssh_minion_root.sls
  114. master_formulas.sls: tests/pillar/master_formulas.sls
  115. - name: control-default
  116. provisioner:
  117. grains:
  118. noservices: true
  119. pillars:
  120. top.sls:
  121. base:
  122. "*":
  123. - common
  124. - control_cloud_digitalocean
  125. - control_cloud_openstack
  126. - control_virt
  127. pillars-from-files:
  128. control_cloud_digitalocean.sls: tests/pillar/control_cloud_digitalocean.sls
  129. control_cloud_openstack.sls: tests/pillar/control_cloud_openstack.sls
  130. control_virt.sls: tests/pillar/control_virt.sls
  131. - name: minion_multi_master_failover
  132. provisioner:
  133. pillars-from-files:
  134. salt.sls: tests/pillar/minion_multi_master_failover.sls
  135. # vim: ft=yaml sw=2 ts=2 sts=2 tw=125