Use the operatingsystemmajrelease fact for CentOS and Ubuntu in metadata.json.
Correct a typo with the operatingsystemmajrelease fact name.