added attribute for cluster_role
added logic for cluster_role