packages: Adding add_epel_repository

In several targets, we need to setup the epel repository to get more
packages for centos or redhat.

Let's make a generic function for that to avoid code duplication.