Centos fixes

Added packages needed to compile ruby gem on cent 6 for ::default. Also moved set apt_repository to only run on ubuntu and debian machines in ::agent.