Generate role for node based on fact and yaml based database