title: Chef: Format and mount device
body: <p>I need to perform these instructions in order to mount a device:</p>
  
  <pre><code>mkfs.ext4 -F /dev/disk/by-id/scsi-0DO_Volume_baz
  
  mkdir -p /mnt/baz;
  mount -o discard,defaults /dev/disk/by-id/scsi-0DO_Volume_baz /mnt/baz
  echo /dev/disk/by-id/scsi-0DO_Volume_baz /mnt/baz ext4 defaults,nofail,discard 0 0 | sudo tee -a /etc/fstab
  </code></pre>
  
  <p>Shortly, I need to format the device and then mount it.</p>
  
  <p>Is it possible to do that using chef?</p>