Saltstack Official Linux Formula
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.

80 rindas
1.9KB

  1. ---
  2. driver:
  3. name: docker
  4. hostname: linux-formula
  5. run_options: -v /dev/log:/dev/log:ro
  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. state_top:
  17. base:
  18. "*":
  19. - linux
  20. pillars:
  21. top.sls:
  22. base:
  23. "*":
  24. - linux
  25. verifier:
  26. name: inspec
  27. sudo: true
  28. platforms:
  29. - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %>
  30. driver_config:
  31. image: <%=ENV['PLATFORM'] || 'epcim/salt:saltstack-ubuntu-xenial-salt-stable'%>
  32. platform: ubuntu
  33. suites:
  34. - name: network
  35. provisioner:
  36. pillars-from-files:
  37. linux.sls: tests/pillar/network.sls
  38. #- name: storage
  39. #provisioner:
  40. #pillars-from-files:
  41. #linux.sls: tests/pillar/storage.sls
  42. #init_environment: |
  43. #sudo mkdir -p /tmp/node
  44. #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024));
  45. #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024));
  46. #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024));
  47. #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024));
  48. #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024));
  49. #sudo mkfs.ext4 /tmp/loop_dev1
  50. #sudo mkswap /tmp/loop_dev2
  51. #sudo chown root /tmp/loop_dev*;
  52. #sudo chmod 0600 /tmp/loop_dev*;
  53. - name: system
  54. provisioner:
  55. pillars-from-files:
  56. linux.sls: tests/pillar/system.sls
  57. - name: system_file
  58. provisioner:
  59. pillars-from-files:
  60. linux.sls: tests/pillar/system_file.sls
  61. pillars_from_directories:
  62. - source: tests/example
  63. dest: srv/salt/linux/files/test
  64. - name: duo
  65. provisioner:
  66. pillars-from-files:
  67. linux.sls: tests/pillar/system_duo.sls
  68. # vim: ft=yaml sw=2 ts=2 sts=2 tw=125