A family of Calabi-Yau varieties and potential automorphy