Browse Source

Fix typo and test

Change-Id: I93e135a9366c1f7c93397dfa0c342428fb64eb1c
tags/2017.4
Filip Pytloun 7 years ago
parent
commit
8578aafdde
2 changed files with 15 additions and 2 deletions
  1. +1
    -1
      linux/storage/lvm.sls
  2. +14
    -1
      tests/pillar/storage.sls

+ 1
- 1
linux/storage/lvm.sls View File

- require_in: - require_in:
- mount: {{ volume.mount.path }} - mount: {{ volume.mount.path }}
{%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %} {%- if not volume.mount.get('file_system', None) in ['nfs', 'nfs4', 'cifs', 'tmpfs', None] %}
- mkfs_{{ volume.mount.device}}:
- cmd: mkfs_{{ volume.mount.device}}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}



+ 14
- 1
tests/pillar/storage.sls View File

lv01: lv01:
size: 5M size: 5M
mount: mount:
path: /mnt
device: /dev/vg0/lv01
path: /mnt/lv01
lv02:
size: 5M
mount:
device: /dev/vg0/lv02
path: /mnt/lv02
file_system: ext4
lv03:
size: 5M
mount:
device: /dev/vg0/lv03
path: /mnt/lv03
file_system: xfs
disk1: disk1:
enabled: true enabled: true
device: /dev/loop_dev4 device: /dev/loop_dev4

Loading…
Cancel
Save