Commit 9c1f5f6b authored by ijaz ahmad's avatar ijaz ahmad Committed by GitHub
Browse files

Update format-drive.pp

parent 106f4e24
# formate a disk using puppet.
exec {"/sbin/mkfs.ext4 /dev/$disk":
unless => "/sbin/blkid -t TYPE=ext4 /dev/$disk"
if $operatingsystemmajrelease == 6 {
exec {"/sbin/mkfs.ext4 /dev/$volume_mount":
unless => "/sbin/blkid -t TYPE=ext4 /dev/$volume_mount"
}
}
elsif $operatingsystemmajrelease == 7 {
exec {"/sbin/mkfs.xfs /dev/$volume_mount":
unless => "/sbin/blkid -t TYPE=xfs /dev/$volume_mount"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment