瀏覽代碼

Merge pull request #40 from simonpasquier/fix-storage-test

Misc fixes for LVM storage
tags/2016.12
Aleš Komárek 8 年之前
父節點
當前提交
e8e517eb07
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      linux/storage/init.sls
  2. +1
    -1
      linux/storage/lvm.sls

+ 1
- 1
linux/storage/init.sls 查看文件

@@ -1,5 +1,5 @@
{%- from "linux/map.jinja" import storage with context %}
{%- if storage.mount|length > 0 or storage.swap|length > 0 or storage.multipath.enabled %}
{%- if storage.mount|length > 0 or storage.swap|length > 0 or storage.multipath.enabled or storage.lvm|length > 0 %}
include:
{%- if storage.mount|length > 0 %}
- linux.storage.mount

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

@@ -25,7 +25,7 @@ lvm_vg_{{ vg.get('name', vgname) }}:
- name: {{ vg.get('name', vgname) }}
- devices: {{ vg.devices|join(',') }}

{%- for lvname, volume in vg.volume.iteritems() %}
{%- for lvname, volume in vg.get('volume', {}).iteritems() %}

lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}:
lvm.lv_present:

Loading…
取消
儲存