moved the user and group parameters to the class level
moved the projects_dir resource outside the defined type to prevent duplicate resources