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



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

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



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

Loading…
Cancel
Save