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

68 行
1.6KB

  1. ---
  2. driver:
  3. name: docker
  4. hostname: linux.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. require_chef: false
  12. log_level: error
  13. formula: linux
  14. grains:
  15. noservices: True
  16. kitchen-test: True
  17. state_top:
  18. base:
  19. "*":
  20. - linux
  21. pillars:
  22. top.sls:
  23. base:
  24. "*":
  25. - linux
  26. verifier:
  27. name: inspec
  28. sudo: true
  29. platforms:
  30. - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
  31. driver_config:
  32. image: <%=ENV['PLATFORM'] || 'epcim/salt:saltstack-ubuntu-xenial-salt-stable'%>
  33. platform: ubuntu
  34. suites:
  35. - name: network
  36. provisioner:
  37. pillars-from-files:
  38. linux.sls: tests/pillar/network.sls
  39. #- name: storage
  40. #provisioner:
  41. #pillars-from-files:
  42. #linux.sls: tests/pillar/storage.sls
  43. #init_environment: |
  44. #sudo mkdir -p /tmp/node
  45. #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024));
  46. #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024));
  47. #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024));
  48. #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024));
  49. #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024));
  50. #sudo mkfs.ext4 /tmp/loop_dev1
  51. #sudo mkswap /tmp/loop_dev2
  52. #sudo chown root /tmp/loop_dev*;
  53. #sudo chmod 0600 /tmp/loop_dev*;
  54. - name: system
  55. provisioner:
  56. pillars-from-files:
  57. linux.sls: tests/pillar/system.sls
  58. # vim: ft=yaml sw=2 ts=2 sts=2 tw=125