Is it a good practice in the first place? How reliable is it? Let's say I have partition with important data. Can I create PV, VG, LV and mount it with salt states and sleep well? What about having mkfs in salt?
Could it happen that salt will freak out and re-create everything erasing my data?
Snippet of my config:
/dev/sdd: lvm.pv_present data_vg: lvm.vg_present: - devices: /dev/sdd lv_data: lvm.lv_present: - vgname: data_vg - size: 999.9G Mount lvm storage: mount.mounted: - name: /important_data - device: /dev/mapper/data_vg-lv_data - fstype: xfs - opts: - defaults - mkmnt: True - persist: True