Many of those projects are at U.S. bases, where renewable energy allows the military to maintain its own independent source of power in case of a natural disaster or an attack - or cyber attack - that disables the public grid.