Yes, a permit is needed. There are important electrical, gas piping, pressure relief and seismic issues that must be addressed in the installation of heaters, air conditioners, and water heaters.