Browse Source

LVM create LV´s first (#175)

* update lvm to create lv´s first

* add force: true  for "Wiping fs signature"

* update mount first
pull/178/head
preussal 6 years ago
parent
commit
8c8aee82ff
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      linux/storage/lvm.sls
  2. +1
    -0
      linux/storage/mount.sls

+ 2
- 0
linux/storage/lvm.sls View File

@@ -47,9 +47,11 @@ lvm_vg_{{ vg.get('name', vgname) }}:

lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}:
lvm.lv_present:
- order: 1
- name: {{ volume.get('name', lvname) }}
- vgname: {{ vg.get('name', vgname) }}
- size: {{ volume.size }}
- force: true
- require:
- lvm: lvm_vg_{{ vg.get('name', vgname) }}
{%- if volume.mount is defined %}

+ 1
- 0
linux/storage/mount.sls View File

@@ -32,6 +32,7 @@ linux_storage_nfs_packages:

{{ mount.path }}:
mount.mounted:
- order: 1
- device: {{ mount.device }}
- fstype: {{ mount.file_system }}
- mkmnt: True

Loading…
Cancel
Save