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

@@ -38,7 +38,7 @@ lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}:
- require_in:
- mount: {{ volume.mount.path }}
{%- 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 %}


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

@@ -36,7 +36,20 @@ linux:
lv01:
size: 5M
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:
enabled: true
device: /dev/loop_dev4

Loading…
Cancel
Save