blob: 1aacb8d03a8dd5b5799ec8a015eb753597423176 [file] [log] [blame]
Petr Michalec35277532017-02-28 23:16:58 +01001---
2driver:
3 name: docker
azvyagintsevb7c2ef42018-08-16 14:21:39 +03004 hostname: linux-formula
5 run_options: -v /dev/log:/dev/log:ro
Martin Polreicha93061d2019-10-14 18:45:40 +02006 build_options: --pull
Petr Michalec35277532017-02-28 23:16:58 +01007
8provisioner:
9 name: salt_solo
10 salt_install: bootstrap
11 salt_bootstrap_url: https://bootstrap.saltstack.com
12 salt_version: latest
13 require_chef: false
14 log_level: error
15 formula: linux
azvyagintseva3a73d02018-12-06 14:49:58 +020016 dependencies:
17 - name: salt
18 repo: git
19 source: http://gerrit.mcp.mirantis.com/salt-formulas/salt
Martin Polreichd27d7e52019-04-10 08:21:45 +020020 branch: <%=ENV['GERRIT_BRANCH'] || 'master' %>
Petr Michalec35277532017-02-28 23:16:58 +010021 grains:
22 noservices: true
23 state_top:
24 base:
25 "*":
26 - linux
27 pillars:
28 top.sls:
29 base:
30 "*":
31 - linux
32
33verifier:
34 name: inspec
35 sudo: true
36
Martin Polreichcceeb3b2019-01-24 14:05:12 +010037docker_images:
Martin Polreicha93061d2019-10-14 18:45:40 +020038 - &xenial-20177 <%=ENV['IMAGE_XENIAL_20177'] || 'docker-dev-local.docker.mirantis.net/mirantis/drivetrain/salt-formulas-ci/salt-formulas-ci-xenial-2017.7:latest'%>
Martin Polreichcceeb3b2019-01-24 14:05:12 +010039
Petr Michalec35277532017-02-28 23:16:58 +010040platforms:
Martin Polreichcceeb3b2019-01-24 14:05:12 +010041 - name: xenial-2017.7
42 driver_config:
43 image: *xenial-20177
44 platform: ubuntu
45
Petr Michalec35277532017-02-28 23:16:58 +010046suites:
Petr Michalec35277532017-02-28 23:16:58 +010047 - name: network
48 provisioner:
49 pillars-from-files:
50 linux.sls: tests/pillar/network.sls
51
52 #- name: storage
53 #provisioner:
54 #pillars-from-files:
55 #linux.sls: tests/pillar/storage.sls
56 #init_environment: |
57 #sudo mkdir -p /tmp/node
58 #sudo dd if=/dev/zero of=/tmp/loop_dev0 bs=1024 count=$((30*1024));
59 #sudo dd if=/dev/zero of=/tmp/loop_dev1 bs=1024 count=$((30*1024));
60 #sudo dd if=/dev/zero of=/tmp/loop_dev2 bs=1024 count=$((30*1024));
61 #sudo dd if=/dev/zero of=/tmp/loop_dev3 bs=1024 count=$((30*1024));
62 #sudo dd if=/dev/zero of=/tmp/loop_dev4 bs=1024 count=$((30*1024));
63 #sudo mkfs.ext4 /tmp/loop_dev1
64 #sudo mkswap /tmp/loop_dev2
65 #sudo chown root /tmp/loop_dev*;
66 #sudo chmod 0600 /tmp/loop_dev*;
67
68 - name: system
69 provisioner:
70 pillars-from-files:
71 linux.sls: tests/pillar/system.sls
72
Gleb Galkin93b9ae92018-10-18 13:57:30 +030073 - name: duo
74 provisioner:
75 pillars-from-files:
76 linux.sls: tests/pillar/system_duo.sls
77
Petr Michalec35277532017-02-28 23:16:58 +010078# vim: ft=yaml sw=2 ts=2 sts=2 tw=125