I used this mini howto on my raspberry:
Here are more details about configuring wifi:
https://wiki.centos.org/HowTos/Laptops/WpaSupplicant