New Saltstack Salt formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
3.8KB

  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. - name: master-default
  85. provisioner:
  86. pillars:
  87. top.sls:
  88. base:
  89. "*":
  90. - common
  91. - minion_pki
  92. - master_api
  93. - master_acl
  94. - master_ssh_key
  95. - master_ssh_password
  96. - master_ssh_root
  97. - minion_pki_cert
  98. - master_formulas
  99. common.sls:
  100. salt:
  101. master:
  102. #Use a useless package to avoid upgrading salt-master
  103. pkgs:
  104. - python-yaml
  105. pillars-from-files:
  106. minion_pki.sls: tests/pillar/minion_pki_ca.sls
  107. minion_pki_cert.sls: tests/pillar/minion_pki_cert.sls
  108. master_api.sls: tests/pillar/master_api.sls
  109. master_acl.sls: tests/pillar/master_acl.sls
  110. master_ssh_key.sls: tests/pillar/master_ssh_minion_key.sls
  111. master_ssh_password.sls: tests/pillar/master_ssh_minion_password.sls
  112. master_ssh_root.sls: tests/pillar/master_ssh_minion_root.sls
  113. master_formulas.sls: tests/pillar/master_formulas.sls
  114. - name: control-default
  115. provisioner:
  116. grains:
  117. noservices: true
  118. pillars:
  119. top.sls:
  120. base:
  121. "*":
  122. - common
  123. - control_cloud_digitalocean
  124. - control_cloud_openstack
  125. - control_virt
  126. pillars-from-files:
  127. control_cloud_digitalocean.sls: tests/pillar/control_cloud_digitalocean.sls
  128. control_cloud_openstack.sls: tests/pillar/control_cloud_openstack.sls
  129. control_virt.sls: tests/pillar/control_virt.sls
  130. - name: minion_multi_master_failover
  131. provisioner:
  132. pillars-from-files:
  133. salt.sls: tests/pillar/minion_multi_master_failover.sls
  134. # vim: ft=yaml sw=2 ts=2 sts=2 tw=125