An agreement has been signed to turn the 3,000-acre dairy farm into a solar energy facility.