Pārlūkot izejas kodu

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 pirms 6 gadiem
vecāks
revīzija
8c8aee82ff
2 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      linux/storage/lvm.sls
  2. +1
    -0
      linux/storage/mount.sls

+ 2
- 0
linux/storage/lvm.sls Parādīt failu

@@ -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 Parādīt failu

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

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

Notiek ielāde…
Atcelt
Saglabāt