fixed old cloudera repo path not working also used the apt_repo resource instead of template files and apt-get commands