Only install modules on masters during tests

This should fix failed puppet module installs on solaris 11 and
windows.