Browse Source

lvm filter fix

Change-Id: I9967f867b8695e4a5bc4759ca81eebe5ef2309c1
pull/115/head
Jiri Broulik 7 years ago
parent
commit
27ca5dd7b2
2 changed files with 1898 additions and 1 deletions
  1. +1891
    -0
      linux/files/lvm.conf
  2. +7
    -1
      linux/storage/lvm.sls

+ 1891
- 0
linux/files/lvm.conf
File diff suppressed because it is too large
View File


+ 7
- 1
linux/storage/lvm.sls View File

@@ -1,7 +1,6 @@
{%- from "linux/map.jinja" import storage with context %}
{%- if storage.enabled %}


linux_lvm_pkgs:
pkg.installed:
- pkgs: {{ storage.lvm_pkgs }}
@@ -48,4 +47,11 @@ lvm_{{ vg.get('name', vgname) }}_lv_{{ volume.get('name', lvname) }}:

{%- endfor %}

/etc/lvm/lvm.conf:
file.managed:
- source: salt://linux/files/lvm.conf
- template: jinja
- require:
- pkg: linux_lvm_pkgs

{%- endif %}

Loading…
Cancel
Save