瀏覽代碼

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 年之前
父節點
當前提交
8c8aee82ff
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. +2
    -0
      linux/storage/lvm.sls
  2. +1
    -0
      linux/storage/mount.sls

+ 2
- 0
linux/storage/lvm.sls 查看文件

@@ -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 查看文件

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

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

Loading…
取消
儲存