How important is vitamin D in preventing infections?

How important is vitamin D in preventing infections?