Probably just my ignorance here, but I thought that the Cossacks were from Kazakhstan, which used to be part of the USSR. Kazakhstan is full of moslems I believe.
Cossacks and Kazakhs are mostly two different things (the former being the Tsar’s cavalry), although the former name probably originated with the latter, a Turkic people.