install based on role of master or remote