Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 1 | --- |
| 2 | driver: |
| 3 | name: docker |
azvyagintsev | b7c2ef4 | 2018-08-16 14:21:39 +0300 | [diff] [blame] | 4 | hostname: linux-formula |
| 5 | run_options: -v /dev/log:/dev/log:ro |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 6 | |
| 7 | provisioner: |
| 8 | name: salt_solo |
| 9 | salt_install: bootstrap |
| 10 | salt_bootstrap_url: https://bootstrap.saltstack.com |
| 11 | salt_version: latest |
| 12 | require_chef: false |
| 13 | log_level: error |
| 14 | formula: linux |
| 15 | grains: |
| 16 | noservices: true |
| 17 | state_top: |
| 18 | base: |
| 19 | "*": |
| 20 | - linux |
| 21 | pillars: |
| 22 | top.sls: |
| 23 | base: |
| 24 | "*": |
| 25 | - linux |
| 26 | |
| 27 | verifier: |
| 28 | name: inspec |
| 29 | sudo: true |
| 30 | |
| 31 | platforms: |
Jakub Josef | 495245a | 2018-03-05 15:41:01 +0100 | [diff] [blame] | 32 | - name: <%=ENV['PLATFORM'] || 'saltstack-ubuntu-xenial-salt-stable' %> |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 33 | driver_config: |
Martin Polreich | 69ce499 | 2018-04-18 15:32:09 +0200 | [diff] [blame] | 34 | image: <%=ENV['PLATFORM'] || 'epcim/salt:saltstack-ubuntu-xenial-salt-stable'%> |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 35 | platform: ubuntu |
| 36 | |
| 37 | |
| 38 | suites: |
| 39 | |
| 40 | - name: network |
| 41 | provisioner: |
| 42 | pillars-from-files: |
| 43 | linux.sls: tests/pillar/network.sls |
| 44 | |
| 45 | #- name: storage |
| 46 | #provisioner: |
| 47 | #pillars-from-files: |
| 48 | #linux.sls: tests/pillar/storage.sls |
| 49 | #init_environment: | |
| 50 | #sudo mkdir -p /tmp/node |
| 51 | #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024)); |
| 52 | #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024)); |
| 53 | #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024)); |
| 54 | #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024)); |
| 55 | #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024)); |
| 56 | #sudo mkfs.ext4 /tmp/loop_dev1 |
| 57 | #sudo mkswap /tmp/loop_dev2 |
| 58 | #sudo chown root /tmp/loop_dev*; |
| 59 | #sudo chmod 0600 /tmp/loop_dev*; |
| 60 | |
| 61 | - name: system |
| 62 | provisioner: |
| 63 | pillars-from-files: |
| 64 | linux.sls: tests/pillar/system.sls |
| 65 | |
| 66 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |