use osfamily instead and add a resource dep so yumrepo loads before package