tried to modify site.pp with $operatingsystem variable but didnt work, reverted to previous config
added mac_facts from graham gilbert