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 |
azvyagintsev | a3a73d0 | 2018-12-06 14:49:58 +0200 | [diff] [blame] | 15 | dependencies: |
| 16 | - name: salt |
| 17 | repo: git |
| 18 | source: http://gerrit.mcp.mirantis.com/salt-formulas/salt |
Martin Polreich | d27d7e5 | 2019-04-10 08:21:45 +0200 | [diff] [blame] | 19 | branch: <%=ENV['GERRIT_BRANCH'] || 'master' %> |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 20 | grains: |
| 21 | noservices: true |
| 22 | state_top: |
| 23 | base: |
| 24 | "*": |
| 25 | - linux |
| 26 | pillars: |
| 27 | top.sls: |
| 28 | base: |
| 29 | "*": |
| 30 | - linux |
| 31 | |
| 32 | verifier: |
| 33 | name: inspec |
| 34 | sudo: true |
| 35 | |
Martin Polreich | cceeb3b | 2019-01-24 14:05:12 +0100 | [diff] [blame] | 36 | docker_images: |
Martin Polreich | cceeb3b | 2019-01-24 14:05:12 +0100 | [diff] [blame] | 37 | - &xenial-20177 <%=ENV['IMAGE_XENIAL_20177'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-2017.7/salt:2018_11_19'%> |
| 38 | - &xenial-stable <%=ENV['IMAGE_XENIAL_STABLE'] || 'docker-dev-local.docker.mirantis.net/epcim/salt/saltstack-ubuntu-xenial-salt-stable/salt:2018_11_19'%> |
| 39 | |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 40 | platforms: |
Martin Polreich | cceeb3b | 2019-01-24 14:05:12 +0100 | [diff] [blame] | 41 | - name: xenial-2017.7 |
| 42 | driver_config: |
| 43 | image: *xenial-20177 |
| 44 | platform: ubuntu |
| 45 | |
| 46 | - name: xenial-stable |
| 47 | driver_config: |
| 48 | image: *xenial-stable |
| 49 | platform: ubuntu |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 50 | |
| 51 | suites: |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 52 | - name: network |
| 53 | provisioner: |
| 54 | pillars-from-files: |
| 55 | linux.sls: tests/pillar/network.sls |
| 56 | |
| 57 | #- name: storage |
| 58 | #provisioner: |
| 59 | #pillars-from-files: |
| 60 | #linux.sls: tests/pillar/storage.sls |
| 61 | #init_environment: | |
| 62 | #sudo mkdir -p /tmp/node |
| 63 | #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024)); |
| 64 | #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024)); |
| 65 | #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024)); |
| 66 | #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024)); |
| 67 | #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024)); |
| 68 | #sudo mkfs.ext4 /tmp/loop_dev1 |
| 69 | #sudo mkswap /tmp/loop_dev2 |
| 70 | #sudo chown root /tmp/loop_dev*; |
| 71 | #sudo chmod 0600 /tmp/loop_dev*; |
| 72 | |
| 73 | - name: system |
| 74 | provisioner: |
| 75 | pillars-from-files: |
| 76 | linux.sls: tests/pillar/system.sls |
| 77 | |
Gleb Galkin | 93b9ae9 | 2018-10-18 13:57:30 +0300 | [diff] [blame] | 78 | - name: duo |
| 79 | provisioner: |
| 80 | pillars-from-files: |
| 81 | linux.sls: tests/pillar/system_duo.sls |
| 82 | |
Petr Michalec | 3527753 | 2017-02-28 23:16:58 +0100 | [diff] [blame] | 83 | # vim: ft=yaml sw=2 ts=2 sts=2 tw=125 |