moved user_data to erb file and added repo option to user_data