Working with disks, configuring their mount points, and gathering useful data about them at times of emergency are some of the most critical tasks in system management. In this recipe, you will learn how Salt helps us perform all of these tasks efficiently.
We will use the same minion and logical volume configured in the previous recipe.
/opt/salt-cookbook/staging/disk/format.slsto have the following entries:
include: - lvm backup_volume: blockdev.formatted: - name: /dev/backup_vg/backup_lv - fs_type: ext4 - require: - lvm: backup_lv
/opt/salt-cookbook/staging/disk/mount.slsto have the following entries:
include: - disk.format backup_mount: ...