Munster have announced that Anthony Foley will replace Japan-bound Rob Penney as head coach at Thomond Park next season.